mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
FileManager: Use String const& instead of String
Change ErrorOr<int> run_in_windowed_mode(String, String) to ErrorOr<int> run_in_windowed_mode(String const&, String const&)
This commit is contained in:
parent
3e0c19d6ea
commit
693ae73606
Notes:
sideshowbarker
2024-07-17 21:34:34 +09:00
Author: https://github.com/LucasChollet
Commit: 693ae73606
Pull-request: https://github.com/SerenityOS/serenity/pull/11601
Issue: https://github.com/SerenityOS/serenity/issues/11251
Reviewed-by: https://github.com/Sauler
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/trflynn89
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@
|
|||
using namespace FileManager;
|
||||
|
||||
static ErrorOr<int> run_in_desktop_mode();
|
||||
static ErrorOr<int> run_in_windowed_mode(String initial_location, String entry_focused_on_init);
|
||||
static ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const& entry_focused_on_init);
|
||||
static void do_copy(Vector<String> const& selected_file_paths, FileOperation file_operation);
|
||||
static void do_paste(String const& target_directory, GUI::Window* window);
|
||||
static void do_create_link(Vector<String> const& selected_file_paths, GUI::Window* window);
|
||||
|
@ -520,7 +520,7 @@ ErrorOr<int> run_in_desktop_mode()
|
|||
return GUI::Application::the()->exec();
|
||||
}
|
||||
|
||||
ErrorOr<int> run_in_windowed_mode(String initial_location, String entry_focused_on_init)
|
||||
ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const& entry_focused_on_init)
|
||||
{
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title("File Manager");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue