diff --git a/Source/Core/Common/NandPaths.cpp b/Source/Core/Common/NandPaths.cpp index e6f2d2a88b..5e6aa57d70 100644 --- a/Source/Core/Common/NandPaths.cpp +++ b/Source/Core/Common/NandPaths.cpp @@ -5,7 +5,6 @@ #include #include -#include #include #include @@ -105,9 +104,9 @@ bool IsTitlePath(const std::string& path, std::optional from, u64 static bool IsIllegalCharacter(char c) { - static const std::unordered_set illegal_chars = {'\"', '*', '/', ':', '<', - '>', '?', '\\', '|', '\x7f'}; - return static_cast(c) <= 0x1F || illegal_chars.find(c) != illegal_chars.end(); + static constexpr auto illegal_chars = {'\"', '*', '/', ':', '<', '>', '?', '\\', '|', '\x7f'}; + return static_cast(c) <= 0x1F || + std::find(illegal_chars.begin(), illegal_chars.end(), c) != illegal_chars.end(); } std::string EscapeFileName(const std::string& filename)