summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2018-09-21 14:40:41 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2018-09-25 07:19:12 +0000
commitfab5775dace35b66650b40d08a67b9182b2ae7f0 (patch)
tree030450dd155f14a530fb905e0ed81679dbf77da2 /src
parent67aa03a4bc18a5de43148bc328229802fad8896b (diff)
Use reference in range for to avoid copy
Change-Id: I5441025990c36226acc2065d7dde8f5220182350 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/webgl/qwebglcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp
index 3315c52..9d48d74 100644
--- a/src/plugins/platforms/webgl/qwebglcontext.cpp
+++ b/src/plugins/platforms/webgl/qwebglcontext.cpp
@@ -887,7 +887,7 @@ QWEBGL_FUNCTION(getIntegerv, void, glGetIntegerv,
case QVariant::List: values = it->toList(); break;
default: values = QVariantList{ *it };
}
- for (const auto integer : qAsConst(values)) {
+ for (const auto &integer : qAsConst(values)) {
bool ok;
*data = integer.toInt(&ok);
if (!ok)