From 6e5f4125e32f545a61e611720fd30c051b691d62 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 16 Jan 2022 16:38:11 -0800 Subject: Use Common::ToLower and Common::ToUpper --- Source/Core/Common/Logging/LogManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/Common/Logging/LogManager.cpp') diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp index 64f1786975..a7b0b010ea 100644 --- a/Source/Core/Common/Logging/LogManager.cpp +++ b/Source/Core/Common/Logging/LogManager.cpp @@ -101,8 +101,7 @@ static size_t DeterminePathCutOffPoint() constexpr const char* pattern2 = "\\source\\core\\"; #endif std::string path = __FILE__; - std::transform(path.begin(), path.end(), path.begin(), - [](char c) { return std::tolower(c, std::locale::classic()); }); + Common::ToLower(&path); size_t pos = path.find(pattern); #ifdef _WIN32 if (pos == std::string::npos) -- cgit v1.2.3