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 started_;
public:
KeyChecker() {
pressed_ = false;
}
KeyChecker() : pressed_(false), started_(false) {}
void start() {
QCoreApplication::instance()->installEventFilter(this);
pressed_ = false;