]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Dialog.h
Initialize class members to please coverity
[lyx.git] / src / frontends / qt4 / Dialog.h
index af33f3fe8accfa6b5ec10fdd2d942555c47f594b..68587154e4adbd8c9095523fb8d8a757c823bcfc 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "support/strfwd.h"
 
-#include <QList>
 #include <QString>
 
 class QWidget;
@@ -251,7 +250,7 @@ public:
         *  We should aim to reduce/remove these from the interface.
         */
        //@{
-       GuiView const & lyxview() const { return *lyxview_; }
+       GuiView const & lyxview() const { return lyxview_; }
        /// Current buffer
        Buffer const & buffer() const;
        /// Main document buffer
@@ -265,6 +264,8 @@ protected:
        void setTitle(QString const & title) { title_ = title; }
        ///
        virtual void apply();
+       /// To be called when the buffer view has changed
+       virtual void onBufferViewChanged() = 0;
 
 private:
        /** The Dialog's name is the means by which a dialog identifies
@@ -274,7 +275,7 @@ private:
        ///
        QString title_;
        ///
-       GuiView * lyxview_;
+       GuiView & lyxview_;
 
        /// intentionally unimplemented, therefore uncopiable
        Dialog(Dialog const &);