Don't use const on value-type returns

This commit is contained in:
John Firebaugh
2015-03-10 10:32:25 -07:00
parent 5fa628bc00
commit 05df041c15
3 changed files with 6 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ VectorTile::VectorTile(pbf tile_pbf) {
}
}
const util::ptr<const GeometryTileLayer> VectorTile::getLayer(const std::string& name) const {
util::ptr<const GeometryTileLayer> VectorTile::getLayer(const std::string& name) const {
auto layer_it = layers.find(name);
if (layer_it != layers.end()) {
return layer_it->second;
@@ -127,6 +127,6 @@ VectorTileLayer::VectorTileLayer(pbf layer_pbf) {
}
}
const util::ptr<const GeometryTileFeature> VectorTileLayer::feature(std::size_t i) const {
util::ptr<const GeometryTileFeature> VectorTileLayer::feature(std::size_t i) const {
return std::make_shared<VectorTileFeature>(features.at(i), *this);
}