From f57cbd9f247ac43dbc9e599cc8523c9b8d93ad48 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Thu, 28 May 2020 13:33:50 -0400 Subject: Make copying directory string more concise --- src/core/file_sys/patch_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 1002b688c..c47ff863e 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -56,8 +56,7 @@ std::shared_ptr FindSubdirectoryCaseless(const std::shared_ptrGetSubdirectories(); for (const auto& subdir : subdirs) { - std::string dir_name = subdir->GetName(); - dir_name = Common::ToLower(dir_name); + std::string dir_name = Common::ToLower(subdir->GetName()); if (dir_name == name) { return subdir; } -- cgit v1.2.3