diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-06 16:27:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-06 19:22:16 +0100 |
commit | 81047d8f9cb092fa3ef83c4e06f1dfd8f65173be (patch) | |
tree | 944ba53a9b84332c2b3e32b682ebe6505ac4db3f /Userland/Services/Clipboard | |
parent | 229a45ab1471e5bdcf532189cdd6a45027ebbfd5 (diff) | |
download | serenity-81047d8f9cb092fa3ef83c4e06f1dfd8f65173be.zip |
LibCore: Make LocalServer::take_over_from_system_server() return ErrorOr
This allows us to use TRY() or MUST() when calling it.
Diffstat (limited to 'Userland/Services/Clipboard')
-rw-r--r-- | Userland/Services/Clipboard/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Services/Clipboard/main.cpp b/Userland/Services/Clipboard/main.cpp index 5e95d376b0..ea4ddc4855 100644 --- a/Userland/Services/Clipboard/main.cpp +++ b/Userland/Services/Clipboard/main.cpp @@ -19,8 +19,7 @@ ErrorOr<int> serenity_main(Main::Arguments) TRY(Core::System::unveil(nullptr, nullptr)); auto server = TRY(Core::LocalServer::try_create()); - bool ok = server->take_over_from_system_server(); - VERIFY(ok); + TRY(server->take_over_from_system_server()); server->on_accept = [&](auto client_socket) { static int s_next_client_id = 0; |