Correctly initialize a member variable

This has be diagnosed by valgrind, I do not know how important it is.
This commit is contained in:
Jean-Marc Lasgouttes 2012-09-07 16:33:40 +02:00
parent 7a7b9abf1b
commit 740c83637d

View File

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