summaryrefslogtreecommitdiff
path: root/Games/Snake/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 20:04:00 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 20:04:00 +0200
commitdefafd72bc771034d615d56fe3fc5f71a7f707e5 (patch)
tree5cf61389b7315605c61aa345e31464deab35542d /Games/Snake/main.cpp
parent15a66dc8ab850de870f906ce64176ad5a58acf7e (diff)
downloadserenity-defafd72bc771034d615d56fe3fc5f71a7f707e5.zip
LibGUI: Convert custom widgets and subclasses to ObjectPtr
Diffstat (limited to 'Games/Snake/main.cpp')
-rw-r--r--Games/Snake/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp
index e8df14fd36..2000cc2aa4 100644
--- a/Games/Snake/main.cpp
+++ b/Games/Snake/main.cpp
@@ -18,7 +18,7 @@ int main(int argc, char** argv)
window->set_title("Snake");
window->set_rect(100, 100, 320, 320);
- auto* game = new SnakeGame;
+ auto game = SnakeGame::construct();
window->set_main_widget(game);
auto menubar = make<GMenuBar>();