syncqt: change to const-ref iteration variable in a for-loop

There is no need to copy the string from the container.

Change-Id: Idebe6a40e6f76ea22d8a8dc6d5d65f3fa277b9d9
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Maxime Roussin-Bélanger 2022-11-03 22:10:02 -04:00
parent 4d84843822
commit d193fcdf0d

View File

@ -379,7 +379,7 @@ private:
return false;
}
for (auto header : generatedHeaders) {
for (const auto &header : generatedHeaders) {
if (header.size() == 0)
continue;
if (header[0] == '@') {