fix: optimization: PVS-Studio warning V836
Expression's value is copied at variable declaration. The variable is never modified. Consider declaring it as a reference. Changed variables to be a reference to avoid unnecessary copy. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -85,7 +85,7 @@ bool ContentLoader::fixPackIndices(
|
||||
indexed.push_back(name);
|
||||
}
|
||||
}
|
||||
for (auto name : detected) {
|
||||
for (const auto &name : detected) {
|
||||
if (!util::contains(indexed, name)) {
|
||||
arr->put(name);
|
||||
modified = true;
|
||||
|
||||
Reference in New Issue
Block a user