summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-12 14:15:16 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-13 23:32:06 +0300
commit4d75001e9af268cca015a46cc0465e39dd4eb971 (patch)
treea768076dca58e7de92d2f788f75cc891eefa7c91 /src
parent4161d197fdb59587b3ef5deac321605fc911a2ab (diff)
downloadqtlocation-mapboxgl-4d75001e9af268cca015a46cc0465e39dd4eb971.tar.gz
[tidy] Check modernize-use-override
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-override.html
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/annotation/annotation_tile.hpp2
-rw-r--r--src/mbgl/style/observer.hpp2
-rw-r--r--src/mbgl/style/source.hpp2
-rw-r--r--src/mbgl/style/style.hpp2
-rw-r--r--src/mbgl/tile/geometry_tile.hpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/annotation/annotation_tile.hpp b/src/mbgl/annotation/annotation_tile.hpp
index bfe83ff557..290df3537e 100644
--- a/src/mbgl/annotation/annotation_tile.hpp
+++ b/src/mbgl/annotation/annotation_tile.hpp
@@ -16,7 +16,7 @@ public:
AnnotationTile(const OverscaledTileID&,
std::string sourceID,
const style::UpdateParameters&);
- ~AnnotationTile();
+ ~AnnotationTile() override;
void setNecessity(Necessity) final;
diff --git a/src/mbgl/style/observer.hpp b/src/mbgl/style/observer.hpp
index 4a5b5ab6ca..2c48114669 100644
--- a/src/mbgl/style/observer.hpp
+++ b/src/mbgl/style/observer.hpp
@@ -17,7 +17,7 @@ public:
* strictly additive; e.g. when a source is loaded, both `onSourceLoaded`
* and `onNeedsRepaint` will be called.
*/
- virtual void onNeedsRepaint() {}
+ void onNeedsRepaint() override {}
virtual void onResourceError(std::exception_ptr) {}
};
diff --git a/src/mbgl/style/source.hpp b/src/mbgl/style/source.hpp
index c17806631b..91fc6514c8 100644
--- a/src/mbgl/style/source.hpp
+++ b/src/mbgl/style/source.hpp
@@ -46,7 +46,7 @@ public:
uint16_t tileSize,
std::unique_ptr<Tileset>&&,
std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&&);
- ~Source();
+ ~Source() override;
bool loaded = false;
void load(FileSource&);
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp
index 522f120d3e..6059c87555 100644
--- a/src/mbgl/style/style.hpp
+++ b/src/mbgl/style/style.hpp
@@ -37,7 +37,7 @@ class Style : public GlyphStoreObserver,
public util::noncopyable {
public:
Style(FileSource&, float pixelRatio);
- ~Style();
+ ~Style() override;
void setJSON(const std::string&);
diff --git a/src/mbgl/tile/geometry_tile.hpp b/src/mbgl/tile/geometry_tile.hpp
index d80b036a76..71b7db3cf4 100644
--- a/src/mbgl/tile/geometry_tile.hpp
+++ b/src/mbgl/tile/geometry_tile.hpp
@@ -26,7 +26,7 @@ public:
style::Style&,
const MapMode);
- ~GeometryTile();
+ ~GeometryTile() override;
void setError(std::exception_ptr err);
void setData(std::unique_ptr<GeometryTileData>);