move from range-based for loop to iterator for to be clearer
This commit is contained in:
committed by
John Firebaugh
parent
fbb2d17f43
commit
a45ae199cf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user