]> git.lyx.org Git - features.git/commitdiff
Correctly initialize a member variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 7 Sep 2012 14:33:40 +0000 (16:33 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 8 Sep 2012 14:59:19 +0000 (16:59 +0200)
This has be diagnosed by valgrind, I do not know how important it is.

src/frontends/qt4/GuiApplication.cpp

index c5048dde3dc101092a3e20cc5cebca09bd5def45..bb5a8ab258a4894d6e7efedf914bd131304f5ede 100644 (file)
@@ -691,9 +691,8 @@ private:
        bool pressed_;
        bool started_;
 public:
-       KeyChecker() {
-               pressed_ = false;
-       }
+       KeyChecker() : pressed_(false), started_(false) {}
+
        void start() {
                QCoreApplication::instance()->installEventFilter(this);
                pressed_ = false;