summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FileSystemModel.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-04-03 18:45:23 +0430
committerAndreas Kling <kling@serenityos.org>2022-04-04 12:48:31 +0200
commitf899c19d4163612996d610bb84975f0bd244faa0 (patch)
tree78c93e7aa14b0471a9990e167837f5dfbee87571 /Userland/Libraries/LibGUI/FileSystemModel.h
parent188207ed79970e5b224f312e2de89d918367d8da (diff)
downloadserenity-f899c19d4163612996d610bb84975f0bd244faa0.zip
LibGUI: Return Optional<Node const&> from node_for_path()
Diffstat (limited to 'Userland/Libraries/LibGUI/FileSystemModel.h')
-rw-r--r--Userland/Libraries/LibGUI/FileSystemModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.h b/Userland/Libraries/LibGUI/FileSystemModel.h
index a796c93a84..7f7a4289a2 100644
--- a/Userland/Libraries/LibGUI/FileSystemModel.h
+++ b/Userland/Libraries/LibGUI/FileSystemModel.h
@@ -151,7 +151,7 @@ private:
String name_for_uid(uid_t) const;
String name_for_gid(gid_t) const;
- Node const* node_for_path(String const&) const;
+ Optional<Node const&> node_for_path(String const&) const;
HashMap<uid_t, String> m_user_names;
HashMap<gid_t, String> m_group_names;