From 47eb891dfe636596f797701a7c1980c5d467103b Mon Sep 17 00:00:00 2001 From: suhrke Date: Thu, 6 Jul 2017 11:29:14 -0700 Subject: [PATCH] changed count loops into iterator loops where intent was more clear --- ReflexToQ3/includes/EntityConverter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReflexToQ3/includes/EntityConverter.cpp b/ReflexToQ3/includes/EntityConverter.cpp index 96e2614..f5fd1da 100644 --- a/ReflexToQ3/includes/EntityConverter.cpp +++ b/ReflexToQ3/includes/EntityConverter.cpp @@ -118,8 +118,9 @@ EntityConverter::extractMapInfo(const std::vector> &ent std::cerr << "Map info already extracted, doing nothing" << std::endl; } else { - for ( int i = 0; i < entities.size(); i++ ) { - std::vector entity( entities[i] ); + std::vector>::const_iterator it; + for ( it=entities.begin(); it!=entities.end(); ++it ) { + std::vector entity( *it ); std::stringstream ss; std::copy(entity.begin(), entity.end(),