mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Kernel: Switch Custody to east-const style
This commit is contained in:
parent
4238e2e9be
commit
7a4e6257b7
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue