Using const reference for C++17 range-based loop and freq used objects

This commit is contained in:
Herman Semenov authored and Henrik Rydgård committed 2023-12-13 17:33:01 +01:00
1 parent da318e0974
commit 315340fc62
13 files changed
+20 -20

No files matched your search

+1 -1
View File
@@ -880,7 +880,7 @@ std::set<std::string> SavedataParam::GetSecureFileNames(const std::string &dirPa
auto entries = GetSFOEntries(dirPath);
std::set<std::string> secureFileNames;
for (auto entry : entries) {
for (const auto &entry : entries) {
char temp[14];
truncate_cpy(temp, entry.filename);
secureFileNames.insert(temp);