diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-03-10 10:33:04 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-03-10 10:33:04 -0700 |
commit | 062d33c8dbf0b753fccf5b48e5d0ec338515161e (patch) | |
tree | c8db71a647e8fe91a39dde72894a7ae1657d9d09 /src | |
parent | 05df041c15ba9e509bc98b043f5368c9a23fa688 (diff) | |
download | qtlocation-mapboxgl-062d33c8dbf0b753fccf5b48e5d0ec338515161e.tar.gz |
virtual ⇢ override in derived class
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/vector_tile.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/map/vector_tile.hpp b/src/mbgl/map/vector_tile.hpp index b27f6bb397..fc8c5966a0 100644 --- a/src/mbgl/map/vector_tile.hpp +++ b/src/mbgl/map/vector_tile.hpp @@ -12,9 +12,9 @@ class VectorTileFeature : public GeometryTileFeature { public: VectorTileFeature(pbf, const VectorTileLayer&); - virtual FeatureType getType() const { return type; } - virtual mapbox::util::optional<Value> getValue(const std::string&) const; - virtual GeometryCollection getGeometries() const; + FeatureType getType() const override { return type; } + mapbox::util::optional<Value> getValue(const std::string&) const override; + GeometryCollection getGeometries() const override; private: uint64_t id = 0; @@ -27,8 +27,8 @@ class VectorTileLayer : public GeometryTileLayer { public: VectorTileLayer(pbf); - virtual std::size_t featureCount() const { return features.size(); } - virtual util::ptr<const GeometryTileFeature> feature(std::size_t) const; + std::size_t featureCount() const override { return features.size(); } + util::ptr<const GeometryTileFeature> feature(std::size_t) const override; private: friend class VectorTile; @@ -45,7 +45,7 @@ class VectorTile : public GeometryTile { public: VectorTile(pbf); - virtual util::ptr<const GeometryTileLayer> getLayer(const std::string&) const; + util::ptr<const GeometryTileLayer> getLayer(const std::string&) const override; private: std::map<std::string, util::ptr<const GeometryTileLayer>> layers; |