Add QObject constructor.

This commit is contained in:
John Maguire 2012-01-04 15:26:22 +00:00
parent 96aa95bebd
commit 3f0c779308
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ class MacFSListener : public QObject {
Q_OBJECT
public:
MacFSListener();
explicit MacFSListener(QObject* parent = 0);
void Init();
void AddPath(const QString& path);

View File

@ -6,8 +6,9 @@
#include "core/logging.h"
MacFSListener::MacFSListener()
: run_loop_(NULL),
MacFSListener::MacFSListener(QObject* parent)
: QObject(parent),
run_loop_(NULL),
stream_(NULL) {
}