mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 21:28:59 +00:00
FileManager: Use TRY in run_file_operation()
The exception is `execvp()` since that has no Core::System wrapper yet.
This commit is contained in:
parent
6a23dfbc92
commit
dc5a318aa9
Notes:
sideshowbarker
2024-07-17 17:28:32 +09:00
Author: https://github.com/AtkinsSJ
Commit: dc5a318aa9
Pull-request: https://github.com/SerenityOS/serenity/pull/13009
4 changed files with 23 additions and 34 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -21,5 +21,5 @@ enum class FileOperation {
|
|||
|
||||
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
|
||||
|
||||
void run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
|
||||
ErrorOr<void> run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue