From 82cc9c0cf2cdb8de17233a2ea943a5247d5da305 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 3 Apr 2015 00:48:56 +0200 Subject: menu/application: Remove singleton. The singleton pattern should not be used in most cases, because it behaves like global variables. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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; } -- cgit v1.2.3