refactor: App , explicit constructor for LoopErrorCode and const APP::Quit event
This commit is contained in:
parent
7b1dd869a7
commit
95ad33960b
2 changed files with 4 additions and 4 deletions
|
|
@ -168,7 +168,7 @@ void App::handleScreenError() const
|
|||
getEvents()->addEvent(Event(EventTypes::Quit));
|
||||
}
|
||||
|
||||
void App::quit()
|
||||
void App::quit() const
|
||||
{
|
||||
LOG_INFO("quitting");
|
||||
getEvents()->addEvent(Event(EventTypes::Quit));
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
App(IEventQueue *events, const QString &processName);
|
||||
explicit App(IEventQueue *events, const QString &processName);
|
||||
App(App const &) = delete;
|
||||
App(App &&) = delete;
|
||||
~App() override;
|
||||
|
|
@ -77,7 +77,7 @@ public:
|
|||
}
|
||||
|
||||
void run(QThread &coreThread);
|
||||
void quit();
|
||||
void quit() const;
|
||||
void setupFileLogging();
|
||||
void loggingFilterWarning() const;
|
||||
void initApp() override;
|
||||
|
|
@ -125,7 +125,7 @@ protected:
|
|||
struct LoopErrorCode
|
||||
{
|
||||
int m_errorCode;
|
||||
LoopErrorCode(int errorCode) : m_errorCode(errorCode)
|
||||
explicit LoopErrorCode(int errorCode) : m_errorCode(errorCode)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue