changed count loops into iterator loops where intent was more clear
This commit is contained in:
parent
100c830c83
commit
47eb891dfe
@ -118,8 +118,9 @@ EntityConverter::extractMapInfo(const std::vector<std::vector<std::string>> &ent
|
|||||||
std::cerr << "Map info already extracted, doing nothing" << std::endl;
|
std::cerr << "Map info already extracted, doing nothing" << std::endl;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for ( int i = 0; i < entities.size(); i++ ) {
|
std::vector<std::vector<std::string>>::const_iterator it;
|
||||||
std::vector<std::string> entity( entities[i] );
|
for ( it=entities.begin(); it!=entities.end(); ++it ) {
|
||||||
|
std::vector<std::string> entity( *it );
|
||||||
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
std::copy(entity.begin(), entity.end(),
|
std::copy(entity.begin(), entity.end(),
|
||||||
|
Loading…
Reference in New Issue
Block a user