From f1885d0d09d5d94ad326f2257c9502b9545f0e79 Mon Sep 17 00:00:00 2001 From: Lukas Oesch Date: Tue, 17 Mar 2026 12:39:17 +0100 Subject: use const & wherever applicable --- kernel/filesystem/src/custody.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/filesystem/src/custody.cpp') diff --git a/kernel/filesystem/src/custody.cpp b/kernel/filesystem/src/custody.cpp index 7a58229..3a87345 100644 --- a/kernel/filesystem/src/custody.cpp +++ b/kernel/filesystem/src/custody.cpp @@ -8,7 +8,7 @@ namespace filesystem { - custody::custody(kstd::shared_ptr parent, kstd::shared_ptr node) + custody::custody(kstd::shared_ptr const & parent, kstd::shared_ptr const & node) : m_parent(parent) , m_inode(node) { @@ -18,12 +18,12 @@ namespace filesystem } } - auto custody::get_inode() const -> kstd::shared_ptr + auto custody::get_inode() const -> kstd::shared_ptr const & { return m_inode; } - auto custody::get_parent() const -> kstd::shared_ptr + auto custody::get_parent() const -> kstd::shared_ptr const & { return m_parent; } -- cgit v1.2.3