From 1baf246d0db0d9d538a8b2c96acc694c7351cb2a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 3 Jun 2021 02:01:14 -0500 Subject: [PATCH] [ox/fs] Make toString(FileType) noexcept (synced from 3ba88e2e27b33673a2203918ca92ef59765c2e1e) --- src/ox/fs/filesystem/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/fs/filesystem/types.hpp b/src/ox/fs/filesystem/types.hpp index 370850aa4..082f3192f 100644 --- a/src/ox/fs/filesystem/types.hpp +++ b/src/ox/fs/filesystem/types.hpp @@ -18,7 +18,7 @@ enum class FileType: uint8_t { Directory = 2 }; -constexpr const char *toString(FileType t) { +constexpr const char *toString(FileType t) noexcept { switch (t) { case FileType::NormalFile: return "Normal File";