diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-17 00:47:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-17 01:27:30 +0200 |
commit | 0e4eb62dd8b117cd653bc6495278596cb3c63a0a (patch) | |
tree | f6ab4a07bb5c78b488d33a34ee872f63c6e41d4c /Userland/Libraries/LibGUI/FileSystemModel.h | |
parent | 36f27094d0e4cd1b82b4ba50a7c9f92736a86817 (diff) | |
download | serenity-0e4eb62dd8b117cd653bc6495278596cb3c63a0a.zip |
LibGUI: Make some API's take String instead of StringView
Diffstat (limited to 'Userland/Libraries/LibGUI/FileSystemModel.h')
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.h b/Userland/Libraries/LibGUI/FileSystemModel.h index 9189a99131..ee5ac0713a 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.h +++ b/Userland/Libraries/LibGUI/FileSystemModel.h @@ -118,16 +118,16 @@ public: bool fetch_data(const String& full_path, bool is_root); }; - static NonnullRefPtr<FileSystemModel> create(const StringView& root_path = "/", Mode mode = Mode::FilesAndDirectories) + static NonnullRefPtr<FileSystemModel> create(String root_path = "/", Mode mode = Mode::FilesAndDirectories) { return adopt(*new FileSystemModel(root_path, mode)); } virtual ~FileSystemModel() override; String root_path() const { return m_root_path; } - void set_root_path(const StringView&); + void set_root_path(String); String full_path(const ModelIndex&) const; - ModelIndex index(const StringView& path, int column) const; + ModelIndex index(String path, int column) const; void update_node_on_selection(const ModelIndex&, const bool); ModelIndex m_previously_selected_index {}; @@ -163,7 +163,7 @@ public: void set_should_show_dotfiles(bool); private: - FileSystemModel(const StringView& root_path, Mode); + FileSystemModel(String root_path, Mode); String name_for_uid(uid_t) const; String name_for_gid(gid_t) const; |