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

This commit is contained in:
Herman Semenov
2023-12-13 17:33:01 +01:00
committed by Henrik Rydgård
parent da318e0974
commit 315340fc62
13 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ public:
bool foundBroken = false;
auto importedFuncsState = importedFuncs;
importedFuncs.clear();
for (auto func : importedFuncsState) {
for (const auto &func : importedFuncsState) {
if (func.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] != '\0' || !Memory::IsValidAddress(func.stubAddr)) {
foundBroken = true;
} else {