summaryrefslogtreecommitdiff
path: root/Demos/Cube
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Cube')
-rw-r--r--Demos/Cube/Cube.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Cube/Cube.cpp b/Demos/Cube/Cube.cpp
index 36faa2deaf..8731f6c948 100644
--- a/Demos/Cube/Cube.cpp
+++ b/Demos/Cube/Cube.cpp
@@ -190,7 +190,7 @@ void Cube::timer_event(Core::TimerEvent&)
int main(int argc, char** argv)
{
- GUI::Application app(argc, argv);
+ auto app = GUI::Application::construct(argc, argv);
auto window = GUI::Window::construct();
window->set_double_buffering_enabled(true);
@@ -209,5 +209,5 @@ int main(int argc, char** argv)
window->show();
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-cube.png"));
- return app.exec();
+ return app->exec();
}