move from range-based for loop to iterator for to be clearer

This commit is contained in:
Justin R. Miller
2015-03-08 14:18:46 -07:00
committed by John Firebaugh
parent fbb2d17f43
commit a45ae199cf
5 changed files with 23 additions and 11 deletions

View File

@@ -241,6 +241,7 @@ bool FilteredVectorTileLayer::iterator::operator!=(const iterator& other) const
return !(feature == other.feature);
}
const VectorTileFeature& FilteredVectorTileLayer::iterator::operator*() const {
return feature;
VectorTileFeature& FilteredVectorTileLayer::iterator::operator*() const {
VectorTileFeature* f = const_cast<VectorTileFeature *>(&feature);
return *f;
}