summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>2022-11-03 22:10:02 -0400
committerMaxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>2022-11-16 13:05:04 -0400
commitd193fcdf0d50d825c4cb97e8308c3d272c1105de (patch)
treed2211fcbcc433a9ad2679334335c3458779c41c0 /src
parent4d8484382248d7bd9e86ccf0f3847b7240a13418 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/tools/syncqt/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp
index c5ab8f6aa9..276d10ea92 100644
--- a/src/tools/syncqt/main.cpp
+++ b/src/tools/syncqt/main.cpp
@@ -379,7 +379,7 @@ private:
return false;
}
- for (auto header : generatedHeaders) {
+ for (const auto &header : generatedHeaders) {
if (header.size() == 0)
continue;
if (header[0] == '@') {