From 81047d8f9cb092fa3ef83c4e06f1dfd8f65173be Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Dec 2021 16:27:57 +0100 Subject: LibCore: Make LocalServer::take_over_from_system_server() return ErrorOr This allows us to use TRY() or MUST() when calling it. --- Userland/Services/Clipboard/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Userland/Services/Clipboard') 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 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; -- cgit v1.2.3