From 7860e927a771d6a07d9b1905071bd389a0e64001 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 10 Feb 2020 15:10:27 -0500 Subject: removed dead insertFile() avoided a few string copies lowercase filename in thread --- src/envfs.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/envfs.cpp') diff --git a/src/envfs.cpp b/src/envfs.cpp index 2716737f..80749046 100644 --- a/src/envfs.cpp +++ b/src/envfs.cpp @@ -1,4 +1,5 @@ #include "envfs.h" +#include "util.h" #include #include @@ -368,7 +369,12 @@ Directory getFilesAndDirs(const std::wstring& path) [](void* pcx, std::wstring_view path, FILETIME ft) { Context* cx = (Context*)pcx; - cx->current.top()->files.push_back({std::wstring(path.begin(), path.end()), ft}); + + cx->current.top()->files.push_back({ + std::wstring(path.begin(), path.end()), + MOShared::ToLowerCopy(path), + ft + }); } ); -- cgit v1.3.1