refactor App::runInner remove unused argc and argv

This commit is contained in:
sithlord48 2025-09-30 16:59:04 -04:00 committed by Nick Bolton
parent 3270b40455
commit 0bc82c3a57
6 changed files with 6 additions and 6 deletions

View file

@ -365,7 +365,7 @@ int ClientApp::start()
return mainLoop(); return mainLoop();
} }
int ClientApp::runInner(int argc, char **argv, StartupFunc startup) int ClientApp::runInner(StartupFunc startup)
{ {
// general initialization // general initialization
m_serverAddress = new NetworkAddress; m_serverAddress = new NetworkAddress;

View file

@ -43,7 +43,7 @@ public:
return false; return false;
} }
int start() override; int start() override;
int runInner(int argc, char **argv, StartupFunc startup) override; int runInner(StartupFunc startup) override;
deskflow::Screen *createScreen() override; deskflow::Screen *createScreen() override;
int mainLoop() override; int mainLoop() override;
void startNode() override; void startNode() override;

View file

@ -22,7 +22,7 @@ public:
virtual ~IApp() = default; virtual ~IApp() = default;
virtual void setByeFunc(void (*bye)(int)) = 0; virtual void setByeFunc(void (*bye)(int)) = 0;
virtual int start() = 0; virtual int start() = 0;
virtual int runInner(int argc, char **argv, StartupFunc startup) = 0; virtual int runInner(StartupFunc startup) = 0;
virtual void startNode() = 0; virtual void startNode() = 0;
virtual void bye(int error) = 0; virtual void bye(int error) = 0;
virtual int mainLoop() = 0; virtual int mainLoop() = 0;

View file

@ -609,7 +609,7 @@ void ServerApp::resetServer()
startServer(); startServer();
} }
int ServerApp::runInner(int argc, char **argv, StartupFunc startup) int ServerApp::runInner(StartupFunc startup)
{ {
// general initialization // general initialization
m_deskflowAddress = new NetworkAddress; m_deskflowAddress = new NetworkAddress;

View file

@ -62,7 +62,7 @@ public:
bool loadConfig(const std::string &pathname) override; bool loadConfig(const std::string &pathname) override;
deskflow::Screen *createScreen() override; deskflow::Screen *createScreen() override;
int mainLoop() override; int mainLoop() override;
int runInner(int argc, char **argv, StartupFunc startup) override; int runInner(StartupFunc startup) override;
int start() override; int start() override;
void startNode() override; void startNode() override;

View file

@ -33,7 +33,7 @@ int startStatic()
int AppUtilUnix::run(int argc, char **argv) int AppUtilUnix::run(int argc, char **argv)
{ {
return app().runInner(argc, argv, &startStatic); return app().runInner(&startStatic);
} }
void AppUtilUnix::startNode() void AppUtilUnix::startNode()