summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager/DirectoryView.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-11 00:55:02 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-11 01:27:46 +0100
commit8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch)
treeca64ba25aa735d25013d76c6d83570496c742014 /Userland/Applications/FileManager/DirectoryView.h
parentad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff)
downloadserenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'Userland/Applications/FileManager/DirectoryView.h')
-rw-r--r--Userland/Applications/FileManager/DirectoryView.h6
1 files changed, 3 insertions, 3 deletions
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 };