diff --git a/deps/ox/src/ox/fs/filesystem/filelocation.hpp b/deps/ox/src/ox/fs/filesystem/filelocation.hpp index b0cf5a734..2d512e316 100644 --- a/deps/ox/src/ox/fs/filesystem/filelocation.hpp +++ b/deps/ox/src/ox/fs/filesystem/filelocation.hpp @@ -96,12 +96,12 @@ class FileAddress { } } - constexpr Result getPath() const noexcept { + constexpr Result getPath() const noexcept { switch (m_type) { case FileAddressType::Path: - return m_data.path; + return ox::StringView(m_data.path); case FileAddressType::ConstPath: - return m_data.constPath; + return ox::StringView(m_data.constPath); default: return OxError(1); }