From 740c83637dd74b6586b8745991eee60f7e7975be Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 7 Sep 2012 16:33:40 +0200 Subject: [PATCH] Correctly initialize a member variable This has be diagnosed by valgrind, I do not know how important it is. --- src/frontends/qt4/GuiApplication.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index c5048dde3d..bb5a8ab258 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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;