diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-10-18 21:43:59 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-11-26 07:04:24 +0000 |
commit | b98c43ea602b336813fa967e610da2be100f748d (patch) | |
tree | fd3e78ee38a1f60b49b021e31aab7401bd90b017 /tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | |
parent | c2bf0cac957b1e7866538201433f3cd38313ab7f (diff) |
Compile with QT_STRICT_ITERATORS defined
This will be the only options for Qt 6, so make sure the code compiles now.
Change-Id: I23f791d1efcbd0bd33805bb4563d40460954db43
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp')
-rw-r--r-- | tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index d06baed322..e2ef5635c2 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -360,8 +360,8 @@ void tst_QApplication::setFont_data() int cnt = 0; QFontDatabase fdb; QStringList families = fdb.families(); - for (QStringList::const_iterator itr = families.begin(); - itr != families.end(); + for (QStringList::const_iterator itr = families.cbegin(); + itr != families.cend(); ++itr) { if (cnt < 3) { QString family = *itr; |