Skip to content

Commit

Permalink
removed QObject from service's main fn
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-fastly committed Nov 16, 2023
1 parent d41f1f8 commit 2c2a244
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 2 additions & 4 deletions src/cpp/handler/handlermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
#include <QTimer>
#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();
}
Expand Down
6 changes: 2 additions & 4 deletions src/cpp/m2adapter/m2adaptermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
#include <QTimer>
#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();
}
Expand Down
6 changes: 2 additions & 4 deletions src/cpp/proxy/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
#include <QTimer>
#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();
}
Expand Down
6 changes: 2 additions & 4 deletions src/cpp/runner/runnermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
#include <QTimer>
#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();
}
Expand Down

0 comments on commit 2c2a244

Please sign in to comment.