aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2015-04-03 00:48:56 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2015-04-03 01:07:01 +0200
commit82cc9c0cf2cdb8de17233a2ea943a5247d5da305 (patch)
treeaf341aed11c15ac3ab54de6c62e56251c859d76f /src/main.cpp
parent263ef7f8c7085b90f8d21e3dfc2598ed7340e73d (diff)
downloadusdx-82cc9c0cf2cdb8de17233a2ea943a5247d5da305.tar.gz
usdx-82cc9c0cf2cdb8de17233a2ea943a5247d5da305.tar.xz
usdx-82cc9c0cf2cdb8de17233a2ea943a5247d5da305.zip
menu/application: Remove singleton.
The singleton pattern should not be used in most cases, because it behaves like global variables.
Diffstat (limited to '')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9e1ba84b..c9df9373 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -27,8 +27,8 @@
int main (int argc, char** argv)
{
- usdx::Application::get_instance()->run();
- usdx::Application::free();
+ usdx::Application app;
+ app.run();
return EXIT_SUCCESS;
}