[ox/fs] Make toString(FileType) noexcept
This commit is contained in:
parent
a9b5bfe438
commit
3ba88e2e27
2
deps/ox/src/ox/fs/filesystem/types.hpp
vendored
2
deps/ox/src/ox/fs/filesystem/types.hpp
vendored
@ -18,7 +18,7 @@ enum class FileType: uint8_t {
|
|||||||
Directory = 2
|
Directory = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr const char *toString(FileType t) {
|
constexpr const char *toString(FileType t) noexcept {
|
||||||
switch (t) {
|
switch (t) {
|
||||||
case FileType::NormalFile:
|
case FileType::NormalFile:
|
||||||
return "Normal File";
|
return "Normal File";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user