diff options
Diffstat (limited to 'Userland/Applications/FileManager')
5 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Applications/FileManager/DirectoryView.cpp b/Userland/Applications/FileManager/DirectoryView.cpp index b076fb7393..a55230930b 100644 --- a/Userland/Applications/FileManager/DirectoryView.cpp +++ b/Userland/Applications/FileManager/DirectoryView.cpp @@ -405,7 +405,7 @@ bool DirectoryView::open(String const& path) return true; } -void DirectoryView::set_status_message(StringView const& message) +void DirectoryView::set_status_message(StringView message) { if (on_status_message) on_status_message(message); diff --git a/Userland/Applications/FileManager/DirectoryView.h b/Userland/Applications/FileManager/DirectoryView.h index 1983479595..00dbf2b304 100644 --- a/Userland/Applications/FileManager/DirectoryView.h +++ b/Userland/Applications/FileManager/DirectoryView.h @@ -66,10 +66,10 @@ public: void launch(URL const&, LauncherHandler const&) const; - Function<void(StringView const& path, bool can_read_in_path, bool can_write_in_path)> on_path_change; + Function<void(StringView path, bool can_read_in_path, bool can_write_in_path)> on_path_change; Function<void(GUI::AbstractView&)> on_selection_change; Function<void(GUI::ModelIndex const&, GUI::ContextMenuEvent const&)> on_context_menu_request; - Function<void(StringView const&)> on_status_message; + Function<void(StringView)> on_status_message; Function<void(int done, int total)> on_thumbnail_progress; Function<void()> on_accepted_drop; @@ -156,7 +156,7 @@ private: void handle_activation(GUI::ModelIndex const&); - void set_status_message(StringView const&); + void set_status_message(StringView); void update_statusbar(); Mode m_mode { Mode::Normal }; diff --git a/Userland/Applications/FileManager/FileOperationProgressWidget.cpp b/Userland/Applications/FileManager/FileOperationProgressWidget.cpp index 84f5a2c861..34af76b3d5 100644 --- a/Userland/Applications/FileManager/FileOperationProgressWidget.cpp +++ b/Userland/Applications/FileManager/FileOperationProgressWidget.cpp @@ -115,7 +115,7 @@ void FileOperationProgressWidget::did_finish() window()->close(); } -void FileOperationProgressWidget::did_error(StringView const& message) +void FileOperationProgressWidget::did_error(StringView message) { // FIXME: Communicate more with the user about errors. close_pipe(); @@ -157,7 +157,7 @@ String FileOperationProgressWidget::estimate_time(off_t bytes_done, off_t total_ return String::formatted("{} hours and {} minutes", hours_remaining, minutes_remaining); } -void FileOperationProgressWidget::did_progress(off_t bytes_done, off_t total_byte_count, size_t files_done, size_t total_file_count, [[maybe_unused]] off_t current_file_done, [[maybe_unused]] off_t current_file_size, StringView const& current_filename) +void FileOperationProgressWidget::did_progress(off_t bytes_done, off_t total_byte_count, size_t files_done, size_t total_file_count, [[maybe_unused]] off_t current_file_done, [[maybe_unused]] off_t current_file_size, StringView current_filename) { auto& files_copied_label = *find_descendant_of_type_named<GUI::Label>("files_copied_label"); auto& current_file_label = *find_descendant_of_type_named<GUI::Label>("current_file_label"); diff --git a/Userland/Applications/FileManager/FileOperationProgressWidget.h b/Userland/Applications/FileManager/FileOperationProgressWidget.h index b6b651945d..9b10da898b 100644 --- a/Userland/Applications/FileManager/FileOperationProgressWidget.h +++ b/Userland/Applications/FileManager/FileOperationProgressWidget.h @@ -22,8 +22,8 @@ private: FileOperationProgressWidget(FileOperation, NonnullRefPtr<Core::File> helper_pipe); void did_finish(); - void did_error(StringView const& message); - void did_progress(off_t bytes_done, off_t total_byte_count, size_t files_done, size_t total_file_count, off_t current_file_done, off_t current_file_size, StringView const& current_filename); + void did_error(StringView message); + void did_progress(off_t bytes_done, off_t total_byte_count, size_t files_done, size_t total_file_count, off_t current_file_done, off_t current_file_size, StringView current_filename); void close_pipe(); diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 1e7f1e98b7..7929d13857 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -1020,7 +1020,7 @@ int run_in_windowed_mode(String initial_location, String entry_focused_on_init) refresh_tree_view(); }; - directory_view.on_status_message = [&](StringView const& message) { + directory_view.on_status_message = [&](StringView message) { statusbar.set_text(message); }; |