Don't use std::move in dirlisting, see #18192

This commit is contained in:
Henrik Rydgård 2023-09-22 10:09:10 +02:00
parent f83fb2325e
commit 755648c997

View File

@ -184,7 +184,7 @@ bool GetFilesInDir(const Path &directory, std::vector<FileInfo> *files, const ch
std::string tmp;
while (*filter) {
if (*filter == ':') {
filters.insert(std::move(tmp));
filters.insert(tmp);
tmp.clear();
} else {
tmp.push_back(*filter);
@ -192,7 +192,7 @@ bool GetFilesInDir(const Path &directory, std::vector<FileInfo> *files, const ch
filter++;
}
if (!tmp.empty())
filters.insert(std::move(tmp));
filters.insert(tmp);
}
#if PPSSPP_PLATFORM(WINDOWS)