diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-04 14:05:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-04 14:05:57 +0200 |
commit | 1dd15950439f4027f6412bb3748f7f433e60924b (patch) | |
tree | 9d80cf082ebb91247bc885a444d58514a4d9a8df /Userland/paste.cpp | |
parent | 0d577ab7815f6ccdba7d85d94ae8cc80d96ea5ea (diff) | |
download | serenity-1dd15950439f4027f6412bb3748f7f433e60924b.zip |
LibGUI: Make GUI::Application a Core::Object
Having this on the stack makes whole-program teardown iffy. Turning it
into a Core::Object allows anyone who needs it to extends its lifetime.
Diffstat (limited to 'Userland/paste.cpp')
-rw-r--r-- | Userland/paste.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/paste.cpp b/Userland/paste.cpp index 6433463387..2a15dc00cd 100644 --- a/Userland/paste.cpp +++ b/Userland/paste.cpp @@ -41,7 +41,7 @@ int main(int argc, char* argv[]) args_parser.add_option(no_newline, "Do not append a newline", "no-newline", 'n'); args_parser.parse(argc, argv); - GUI::Application app(argc, argv); + auto app = GUI::Application::construct(argc, argv); auto& clipboard = GUI::Clipboard::the(); auto data_and_type = clipboard.data_and_type(); |