summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 00:51:38 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 00:51:38 +0200
commit7a4e6257b7e1f47d9ca5cbf306082ed132f7ebe0 (patch)
tree6fc0a96cdf25b68d876a29108c5c0668e2cc94cf /Kernel
parent4238e2e9be9c3e26c634c09db97d531401b6996b (diff)
downloadserenity-7a4e6257b7e1f47d9ca5cbf306082ed132f7ebe0.zip
Kernel: Switch Custody to east-const style
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/Custody.cpp2
-rw-r--r--Kernel/FileSystem/Custody.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/Custody.cpp b/Kernel/FileSystem/Custody.cpp
index 85500ea16d..8eb00b56e3 100644
--- a/Kernel/FileSystem/Custody.cpp
+++ b/Kernel/FileSystem/Custody.cpp
@@ -69,7 +69,7 @@ String Custody::absolute_path() const
{
if (!parent())
return "/";
- Vector<const Custody*, 32> custody_chain;
+ Vector<Custody const*, 32> custody_chain;
for (auto* custody = this; custody; custody = custody->parent())
custody_chain.append(custody);
StringBuilder builder;
diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h
index b2eaa1ee2c..ca54e9e35c 100644
--- a/Kernel/FileSystem/Custody.h
+++ b/Kernel/FileSystem/Custody.h
@@ -26,9 +26,9 @@ public:
~Custody();
Custody* parent() { return m_parent.ptr(); }
- const Custody* parent() const { return m_parent.ptr(); }
+ Custody const* parent() const { return m_parent.ptr(); }
Inode& inode() { return *m_inode; }
- const Inode& inode() const { return *m_inode; }
+ Inode const& inode() const { return *m_inode; }
StringView name() const { return m_name->view(); }
OwnPtr<KString> try_create_absolute_path() const;
String absolute_path() const;