diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.hpp b/deps/ox/src/ox/fs/filesystem/filesystem.hpp index 4b32ee31..3d72783e 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.hpp @@ -102,15 +102,15 @@ class FileSystemTemplate: public FileSystem { void(*m_freeBuffer)(char*) = nullptr; public: - FileSystemTemplate() = default; + FileSystemTemplate() noexcept = default; - FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*) = [] (char *buff) { delete buff; }); + FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*) = [](char *buff) { delete buff; }) noexcept; - FileSystemTemplate(FileStore fs); + FileSystemTemplate(FileStore fs) noexcept; - ~FileSystemTemplate(); + ~FileSystemTemplate() noexcept; - static Error format(void *buff, uint64_t buffSize); + static Error format(void *buff, uint64_t buffSize) noexcept; Error mkdir(const char *path, bool recursive = false) noexcept override; @@ -127,7 +127,7 @@ class FileSystemTemplate: public FileSystem { Result read(uint64_t) noexcept override; template - Error ls(const char *dir, F cb) noexcept; + Error ls(const char *dir, F cb); Error remove(const char *path, bool recursive = false) noexcept override; @@ -171,25 +171,25 @@ class FileSystemTemplate: public FileSystem { }; template -FileSystemTemplate::FileSystemTemplate(FileStore fs) { +FileSystemTemplate::FileSystemTemplate(FileStore fs) noexcept { m_fs = fs; } template -FileSystemTemplate::FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*)): +FileSystemTemplate::FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*)) noexcept: m_fs(buffer, bufferSize), m_freeBuffer(freeBuffer) { } template -FileSystemTemplate::~FileSystemTemplate() { +FileSystemTemplate::~FileSystemTemplate() noexcept { if (m_freeBuffer && m_fs.buff()) { m_freeBuffer(m_fs.buff()); } } template -Error FileSystemTemplate::format(void *buff, uint64_t buffSize) { +Error FileSystemTemplate::format(void *buff, uint64_t buffSize) noexcept { oxReturnError(FileStore::format(buff, buffSize)); FileStore fs(buff, buffSize); @@ -271,7 +271,7 @@ Result FileSystemTemplate::read(uint64_t inode) template template -Error FileSystemTemplate::ls(const char *path, F cb) noexcept { +Error FileSystemTemplate::ls(const char *path, F cb) { oxTrace("ox::FileSystemTemplate::ls") << "path:" << path; auto [s, err] = stat(path); oxReturnError(err);