diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-08-18 18:03:47 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-09-03 16:50:01 +0000 |
commit | 2f9db0a6310229887139df16c18c20756a8e0347 (patch) | |
tree | d824b5c4546e400c258b2b397e21e7859f915ced /examples/quick/scenegraph/textureinthread | |
parent | 7eee493a437b1f29ea3be7c20465e51aab804188 (diff) |
examples: replace 'foreach' with 'range for'
While touching the code, replace QStringLiteral
with QL1S in QStringBuilder expression.
Change-Id: I2519b254d82453e1c9bd5b834c0bd78e5c026f83
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/textureinthread')
-rw-r--r-- | examples/quick/scenegraph/textureinthread/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/textureinthread/main.cpp b/examples/quick/scenegraph/textureinthread/main.cpp index 22550cd22b..61d1c5e6dc 100644 --- a/examples/quick/scenegraph/textureinthread/main.cpp +++ b/examples/quick/scenegraph/textureinthread/main.cpp @@ -82,7 +82,7 @@ int main(int argc, char **argv) // As the render threads make use of our QGuiApplication object // to clean up gracefully, wait for them to finish before // QGuiApp is taken off the heap. - foreach (QThread *t, ThreadRenderer::threads) { + for (QThread *t : qAsConst(ThreadRenderer::threads)) { t->wait(); delete t; } |