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/mount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/filesystem/src/mount.cpp') 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 fs) + mount::mount(std::string_view const & path, kstd::shared_ptr 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 + auto mount::get_filesystem() const -> kstd::shared_ptr const & { return m_filesystem; } -- cgit v1.2.3