From 45969a0dbb69005f32eb9f99a9669eaee4aa256c Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 23 Jul 2015 13:16:38 +0200 Subject: Use constBegin/End with const_iterator Change-Id: I9c4801ac91c52d487e98a99ff4d38e133f0679a3 Reviewed-by: Liang Qi Reviewed-by: Mitch Curtis Reviewed-by: Gabriel de Dietrich --- tests/auto/snippets/tst_snippets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/snippets') diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp index b07e10b0..39375e12 100644 --- a/tests/auto/snippets/tst_snippets.cpp +++ b/tests/auto/snippets/tst_snippets.cpp @@ -97,7 +97,7 @@ void tst_Snippets::screenshots_data() QTest::addColumn("output"); QMap::const_iterator it; - for (it = filePaths.begin(); it != filePaths.end(); ++it) + for (it = filePaths.constBegin(); it != filePaths.constEnd(); ++it) QTest::newRow(qPrintable(it.key())) << it.value().first << it.value().second; } -- cgit v1.2.3