diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-03 13:55:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-03 21:14:40 +0200 |
commit | eb21aa65d131f6fb382ad80d672e5a7ffb1a21e1 (patch) | |
tree | 674d52f397d8318941e97426b5100c18c8ac885f /Userland/Libraries/LibDesktop | |
parent | 5bb79ea0a79322d944368825ec617ccfb8912b81 (diff) | |
download | serenity-eb21aa65d131f6fb382ad80d672e5a7ffb1a21e1.zip |
Userland: Make IPC results with one return value available directly
This changes client methods so that they return the IPC response's
return value directly - instead of the response struct - for IPC
methods which only have a single return value.
Diffstat (limited to 'Userland/Libraries/LibDesktop')
-rw-r--r-- | Userland/Libraries/LibDesktop/Launcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibDesktop/Launcher.cpp b/Userland/Libraries/LibDesktop/Launcher.cpp index c77d4a8fba..4ae1307c8d 100644 --- a/Userland/Libraries/LibDesktop/Launcher.cpp +++ b/Userland/Libraries/LibDesktop/Launcher.cpp @@ -99,7 +99,7 @@ bool Launcher::seal_allowlist() bool Launcher::open(const URL& url, const String& handler_name) { - return connection().open_url(url, handler_name).response(); + return connection().open_url(url, handler_name); } bool Launcher::open(const URL& url, const Details& details) @@ -110,12 +110,12 @@ bool Launcher::open(const URL& url, const Details& details) Vector<String> Launcher::get_handlers_for_url(const URL& url) { - return connection().get_handlers_for_url(url.to_string()).handlers(); + return connection().get_handlers_for_url(url.to_string()); } auto Launcher::get_handlers_with_details_for_url(const URL& url) -> NonnullRefPtrVector<Details> { - auto details = connection().get_handlers_with_details_for_url(url.to_string()).handlers_details(); + auto details = connection().get_handlers_with_details_for_url(url.to_string()); NonnullRefPtrVector<Details> handlers_with_details; for (auto& value : details) { handlers_with_details.append(Details::from_details_str(value)); |