diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 12:39:17 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 16:44:38 +0100 |
| commit | f1885d0d09d5d94ad326f2257c9502b9545f0e79 (patch) | |
| tree | cadf310b59a3db630f1b02630bab9b1b029fda8e /kernel/filesystem/src/custody.cpp | |
| parent | 3f8af998aaf87d83af3af6c5708d8a84b775b50e (diff) | |
| download | teachos-f1885d0d09d5d94ad326f2257c9502b9545f0e79.tar.xz teachos-f1885d0d09d5d94ad326f2257c9502b9545f0e79.zip | |
use const & wherever applicable
Diffstat (limited to 'kernel/filesystem/src/custody.cpp')
| -rw-r--r-- | kernel/filesystem/src/custody.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<custody> parent, kstd::shared_ptr<inode> node) + custody::custody(kstd::shared_ptr<custody> const & parent, kstd::shared_ptr<inode> const & node) : m_parent(parent) , m_inode(node) { @@ -18,12 +18,12 @@ namespace filesystem } } - auto custody::get_inode() const -> kstd::shared_ptr<inode> + auto custody::get_inode() const -> kstd::shared_ptr<inode> const & { return m_inode; } - auto custody::get_parent() const -> kstd::shared_ptr<custody> + auto custody::get_parent() const -> kstd::shared_ptr<custody> const & { return m_parent; } |
