Consolidate Main and TheApp

This commit is contained in:
Jaidyn Ann 2021-06-23 14:15:22 -05:00
parent b52be74dfb
commit 6f3b375232
4 changed files with 14 additions and 20 deletions

View File

@ -1,19 +0,0 @@
/*
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Andrea Anzani, andrea.anzani@gmail.com
*/
#include "TheApp.h"
int
main(int argc, char* argv[])
{
TheApp app;
app.Run();
return 0;
}

View File

@ -41,7 +41,6 @@ SRCS = \
application/DefaultItems.cpp \
application/EditingFilter.cpp \
application/ImageCache.cpp \
application/Main.cpp \
application/Notifier.cpp \
application/ProtocolLooper.cpp \
application/ProtocolManager.cpp \

View File

@ -28,6 +28,16 @@
#include "Server.h"
int
main(int argc, char* argv[])
{
TheApp app;
app.Run();
return 0;
}
TheApp::TheApp()
:
BApplication(APP_SIGNATURE),

View File

@ -10,6 +10,10 @@
class MainWindow;
int main(int argc, char* argv[]);
class TheApp : public BApplication {
public:
TheApp();