summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/src/java-style-iterators.qdoc
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-01-06 14:46:40 +0100
committerKai Köhne <kai.koehne@qt.io>2022-01-17 18:11:43 +0100
commit713967ae3066eabaee1148eabfd0d3ababb618e9 (patch)
tree546db4e9919dd9bbe7d281772ab2a77dc36f08b2 /src/corelib/doc/src/java-style-iterators.qdoc
parentbc3ac007d84e741011384d83d8fed4f08d1c90ff (diff)
Doc: Make QListIterator snippets more robust
qDebug() << i.next(); can become a NOOP if the code is compiled with QT_NO_DEBUG_OUTPUT. Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-97535 Change-Id: I9085b40ac9b4de2bb06f16e03fd5100902b08d4f Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/doc/src/java-style-iterators.qdoc')
-rw-r--r--src/corelib/doc/src/java-style-iterators.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/doc/src/java-style-iterators.qdoc b/src/corelib/doc/src/java-style-iterators.qdoc
index 69b9592996..7e3c9db69b 100644
--- a/src/corelib/doc/src/java-style-iterators.qdoc
+++ b/src/corelib/doc/src/java-style-iterators.qdoc
@@ -71,7 +71,7 @@
\image javaiterators1.png
Here's a typical loop for iterating through all the elements of a
- QList<QString> in order and printing them to the console:
+ QList<QString> in order:
\snippet code/doc_src_containers.cpp 1