aboutsummaryrefslogtreecommitdiff
path: root/kernel/filesystem/src/custody.cpp
diff options
context:
space:
mode:
authorLukas Oesch <lukasoesch20@gmail.com>2026-03-17 11:49:13 +0100
committerLukas Oesch <lukasoesch20@gmail.com>2026-03-17 16:44:35 +0100
commit5801be615a50bf465a9663b7f75cafbcf0870f5c (patch)
treee3a6df2863ba9b6b24c76219bc685975be5e69d3 /kernel/filesystem/src/custody.cpp
parent471888c64ed490b1f1dbaa2c2f67a1e8d315905a (diff)
downloadteachos-5801be615a50bf465a9663b7f75cafbcf0870f5c.tar.xz
teachos-5801be615a50bf465a9663b7f75cafbcf0870f5c.zip
use kstd::vector instead of std::array and replace plain-pointers with kstd::shared_ptr
Diffstat (limited to 'kernel/filesystem/src/custody.cpp')
-rw-r--r--kernel/filesystem/src/custody.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/filesystem/src/custody.cpp b/kernel/filesystem/src/custody.cpp
index 614e63b..7a58229 100644
--- a/kernel/filesystem/src/custody.cpp
+++ b/kernel/filesystem/src/custody.cpp
@@ -4,9 +4,11 @@
#include "filesystem/inode.hpp"
+#include <kstd/memory>
+
namespace filesystem
{
- custody::custody(custody * parent, inode * node)
+ custody::custody(kstd::shared_ptr<custody> parent, kstd::shared_ptr<inode> node)
: m_parent(parent)
, m_inode(node)
{
@@ -16,12 +18,12 @@ namespace filesystem
}
}
- auto custody::get_inode() const -> inode *
+ auto custody::get_inode() const -> kstd::shared_ptr<inode>
{
return m_inode;
}
- auto custody::get_parent() const -> custody *
+ auto custody::get_parent() const -> kstd::shared_ptr<custody>
{
return m_parent;
}