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/mount.cpp | |
| parent | 3f8af998aaf87d83af3af6c5708d8a84b775b50e (diff) | |
| download | teachos-f1885d0d09d5d94ad326f2257c9502b9545f0e79.tar.xz teachos-f1885d0d09d5d94ad326f2257c9502b9545f0e79.zip | |
use const & wherever applicable
Diffstat (limited to 'kernel/filesystem/src/mount.cpp')
| -rw-r--r-- | kernel/filesystem/src/mount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/filesystem/src/mount.cpp b/kernel/filesystem/src/mount.cpp index 53a8143..021b074 100644 --- a/kernel/filesystem/src/mount.cpp +++ b/kernel/filesystem/src/mount.cpp @@ -10,7 +10,7 @@ namespace filesystem { - mount::mount(std::string_view const & path, kstd::shared_ptr<filesystem> fs) + mount::mount(std::string_view const & path, kstd::shared_ptr<filesystem> const & fs) : m_path(path) , m_filesystem(fs) { @@ -25,7 +25,7 @@ namespace filesystem return m_path; } - auto mount::get_filesystem() const -> kstd::shared_ptr<filesystem> + auto mount::get_filesystem() const -> kstd::shared_ptr<filesystem> const & { return m_filesystem; } |
