diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 11:49:13 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 16:44:35 +0100 |
| commit | 5801be615a50bf465a9663b7f75cafbcf0870f5c (patch) | |
| tree | e3a6df2863ba9b6b24c76219bc685975be5e69d3 /kernel/filesystem/src/mount.cpp | |
| parent | 471888c64ed490b1f1dbaa2c2f67a1e8d315905a (diff) | |
| download | teachos-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/mount.cpp')
| -rw-r--r-- | kernel/filesystem/src/mount.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/filesystem/src/mount.cpp b/kernel/filesystem/src/mount.cpp index 6594598..53a8143 100644 --- a/kernel/filesystem/src/mount.cpp +++ b/kernel/filesystem/src/mount.cpp @@ -4,11 +4,13 @@ #include "filesystem/filesystem.hpp" +#include <kstd/memory> + #include <string_view> namespace filesystem { - mount::mount(std::string_view const & path, filesystem * fs) + mount::mount(std::string_view const & path, kstd::shared_ptr<filesystem> fs) : m_path(path) , m_filesystem(fs) { @@ -23,7 +25,7 @@ namespace filesystem return m_path; } - auto mount::get_filesystem() const -> filesystem * + auto mount::get_filesystem() const -> kstd::shared_ptr<filesystem> { return m_filesystem; } |
