no need for while loop
This commit is contained in:
committed by
John Firebaugh
parent
e379756f62
commit
91dc0ba06f
@@ -206,7 +206,7 @@ util::ptr<GeometryFilteredTileLayer> VectorTileLayer::createFilter(const FilterE
|
||||
}
|
||||
|
||||
util::ptr<GeometryTileFeature> VectorTileLayer::nextFeature() {
|
||||
while (feature_pbf.next(2)) {
|
||||
if (feature_pbf.next(2)) {
|
||||
return std::move(std::make_shared<VectorTileFeature>(feature_pbf.message(), shared_from_this()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user