diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-10 15:10:27 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-18 17:25:03 -0500 |
| commit | 7860e927a771d6a07d9b1905071bd389a0e64001 (patch) | |
| tree | 0b24d49f9b324cda356103f80ca4df8246c82b62 /src/envfs.cpp | |
| parent | 3423b0a59337cf4cf99a24a1421ea33c4c641a22 (diff) | |
removed dead insertFile()
avoided a few string copies
lowercase filename in thread
Diffstat (limited to 'src/envfs.cpp')
| -rw-r--r-- | src/envfs.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <utility.h> #include <log.h> @@ -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 + }); } ); |
