aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world/hello.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-29 09:23:50 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-29 09:23:50 +0200
commitd6d3fa394d7ebb703afc84deb91dbece0776ff88 (patch)
tree6c9e8fa899d4f83718e6080e70566c60de56c6fa /examples/hello-world/hello.cpp
parent0a85bb794df73906da2905c72e305e556e717a79 (diff)
downloadlibadwaitamm-d6d3fa394d7ebb703afc84deb91dbece0776ff88.tar.xz
libadwaitamm-d6d3fa394d7ebb703afc84deb91dbece0776ff88.zip
app-win: take application by RefPtr
Diffstat (limited to 'examples/hello-world/hello.cpp')
-rw-r--r--examples/hello-world/hello.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hello-world/hello.cpp b/examples/hello-world/hello.cpp
index ddcbc7a..dd8aa56 100644
--- a/examples/hello-world/hello.cpp
+++ b/examples/hello-world/hello.cpp
@@ -5,7 +5,7 @@ auto main(int argc, char ** argv) -> int
auto app = Adwaita::Application::create("org.example.Hello");
app->signal_activate().connect([app] {
- auto window = new Adwaita::ApplicationWindow{*app};
+ auto window = new Adwaita::ApplicationWindow{app};
app->signal_shutdown().connect([window] { delete window; });
window->present();