mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibGUI: Make Clipboard::initialize
propagate errors
This commit is contained in:
parent
1a97382305
commit
5c29b45d1d
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/LucasChollet
Commit: 5c29b45d1d
Pull-request: https://github.com/SerenityOS/serenity/pull/18648
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 5 additions and 4 deletions
|
@ -37,9 +37,10 @@ static ConnectionToClipboardServer& connection()
|
|||
return *s_connection;
|
||||
}
|
||||
|
||||
void Clipboard::initialize(Badge<Application>)
|
||||
ErrorOr<void> Clipboard::initialize(Badge<Application>)
|
||||
{
|
||||
s_connection = ConnectionToClipboardServer::try_create().release_value_but_fixme_should_propagate_errors();
|
||||
s_connection = TRY(ConnectionToClipboardServer::try_create());
|
||||
return {};
|
||||
}
|
||||
|
||||
Clipboard& Clipboard::the()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue