diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-19 01:56:22 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-20 16:03:06 +0000 |
commit | c75be7ad516c7cd041820a9e651ae71fcb8248c4 (patch) | |
tree | 479bd08f90687845829fd1a1430dd281491745b6 /tests | |
parent | 2ad4ac1b99a17ab9dabd3a29b81f39f3325dd965 (diff) |
Apply modernize-use-auto fix-it
Makes clang-tidy happier
Change-Id: I75f3b6409b425b9a7054d7886ab0160a040b25d5
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/tools/tst_tools.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/tools/tst_tools.cpp b/tests/auto/tools/tst_tools.cpp index a6c699232..edf5a1308 100644 --- a/tests/auto/tools/tst_tools.cpp +++ b/tests/auto/tools/tst_tools.cpp @@ -847,7 +847,7 @@ void TestTools::set_stlIterator() { int sum = 0; - Set<QString>::const_iterator i = set1.cbegin(); + auto i = set1.cbegin(); while (i != set1.end()) { sum += toNumber(*i); ++i; @@ -857,7 +857,7 @@ void TestTools::set_stlIterator() { int sum = 0; - Set<QString>::const_iterator i = set1.cend(); + auto i = set1.cend(); while (i != set1.begin()) { --i; sum += toNumber(*i); @@ -874,7 +874,7 @@ void TestTools::set_stlMutableIterator() { int sum = 0; - Set<QString>::iterator i = set1.begin(); + auto i = set1.begin(); while (i != set1.end()) { sum += toNumber(*i); ++i; @@ -884,7 +884,7 @@ void TestTools::set_stlMutableIterator() { int sum = 0; - Set<QString>::iterator i = set1.end(); + auto i = set1.end(); while (i != set1.begin()) { --i; sum += toNumber(*i); @@ -896,8 +896,8 @@ void TestTools::set_stlMutableIterator() Set<QString> set2 = set1; Set<QString> set3 = set2; - Set<QString>::iterator i = set2.begin(); - Set<QString>::iterator j = set3.begin(); + auto i = set2.begin(); + auto j = set3.begin(); while (i != set2.end()) { i = set2.erase(i); |