diff --git a/src/cpp/handler/handlermain.cpp b/src/cpp/handler/handlermain.cpp index 12dbb291..3fd4a883 100644 --- a/src/cpp/handler/handlermain.cpp +++ b/src/cpp/handler/handlermain.cpp @@ -24,16 +24,14 @@ #include #include "handlerapp.h" -class HandlerAppMain : public QObject +class HandlerAppMain { - Q_OBJECT - public: HandlerApp *app; void start() { - app = new HandlerApp(this); + app = new HandlerApp(); app->quit.connect(boost::bind(&HandlerAppMain::app_quit, this, boost::placeholders::_1)); app->start(); } diff --git a/src/cpp/m2adapter/m2adaptermain.cpp b/src/cpp/m2adapter/m2adaptermain.cpp index ffebbab6..bd928c83 100644 --- a/src/cpp/m2adapter/m2adaptermain.cpp +++ b/src/cpp/m2adapter/m2adaptermain.cpp @@ -24,16 +24,14 @@ #include #include "m2adapterapp.h" -class M2AdapterAppMain : public QObject +class M2AdapterAppMain { - Q_OBJECT - public: M2AdapterApp *app; void start() { - app = new M2AdapterApp(this); + app = new M2AdapterApp(); app->quit.connect(boost::bind(&M2AdapterAppMain::app_quit, this, boost::placeholders::_1)); app->start(); } diff --git a/src/cpp/proxy/main.cpp b/src/cpp/proxy/main.cpp index 48429f71..c9c31a7a 100644 --- a/src/cpp/proxy/main.cpp +++ b/src/cpp/proxy/main.cpp @@ -24,16 +24,14 @@ #include #include "app.h" -class AppMain : public QObject +class AppMain { - Q_OBJECT - public: App *app; void start() { - app = new App(this); + app = new App(); app->quit.connect(boost::bind(&AppMain::app_quit, this, boost::placeholders::_1)); app->start(); } diff --git a/src/cpp/runner/runnermain.cpp b/src/cpp/runner/runnermain.cpp index 4b3158ad..17f51675 100644 --- a/src/cpp/runner/runnermain.cpp +++ b/src/cpp/runner/runnermain.cpp @@ -24,16 +24,14 @@ #include #include "runnerapp.h" -class RunnerAppMain : public QObject +class RunnerAppMain { - Q_OBJECT - public: RunnerApp *app; void start() { - app = new RunnerApp(this); + app = new RunnerApp(); app->quit.connect(boost::bind(&RunnerAppMain::app_quit, this, boost::placeholders::_1)); app->start(); }