aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/mapuser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/mapuser.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/mapuser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/tests/libsample/mapuser.cpp b/sources/shiboken6/tests/libsample/mapuser.cpp
index c793235df..40059bbcd 100644
--- a/sources/shiboken6/tests/libsample/mapuser.cpp
+++ b/sources/shiboken6/tests/libsample/mapuser.cpp
@@ -29,8 +29,8 @@ std::map<std::string, std::pair<Complex, int> > MapUser::createMap()
void MapUser::showMap(std::map<std::string, int> mapping)
{
std::cout << __FUNCTION__ << std::endl;
- for (auto it = mapping.begin(), end = mapping.end(); it != end; ++it)
- std::cout << (*it).first << " => " << (*it).second << std::endl;
+ for (const auto &p : mapping)
+ std::cout << p.first << " => " << p.second << std::endl;
}
void MapUser::pointerToMap(std::map<std::string, std::string> *)