summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 03:17:22 +0300
commit8e4a7b02e19b336710b7be073bb47b2f3b0f96e5 (patch)
tree2c0c97aeb84932fcd44ab05a27affd78c5a70ecb
parentd7858e0011be91eabe516e902d75673b8e0c71b1 (diff)
downloadqtlocation-mapboxgl-8e4a7b02e19b336710b7be073bb47b2f3b0f96e5.tar.gz
[core] Fix modernize-use-override errors in header files
As reported by clang-tidy-8.
-rw-r--r--include/mbgl/style/expression/number_format.hpp2
-rw-r--r--include/mbgl/style/layers/location_indicator_layer.hpp2
-rw-r--r--src/mbgl/gfx/offscreen_texture.hpp2
-rw-r--r--src/mbgl/gl/index_buffer_resource.hpp2
-rw-r--r--src/mbgl/gl/texture_resource.hpp2
-rw-r--r--src/mbgl/gl/vertex_buffer_resource.hpp2
-rw-r--r--src/mbgl/renderer/render_source.hpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/include/mbgl/style/expression/number_format.hpp b/include/mbgl/style/expression/number_format.hpp
index 9571c7d98a..288c144f2f 100644
--- a/include/mbgl/style/expression/number_format.hpp
+++ b/include/mbgl/style/expression/number_format.hpp
@@ -15,7 +15,7 @@ public:
std::unique_ptr<Expression> minFractionDigits_,
std::unique_ptr<Expression> maxFractionDigits_);
- ~NumberFormat();
+ ~NumberFormat() override;
static ParseResult parse(const mbgl::style::conversion::Convertible& value, ParsingContext& ctx);
diff --git a/include/mbgl/style/layers/location_indicator_layer.hpp b/include/mbgl/style/layers/location_indicator_layer.hpp
index fcf688fb99..8d70bc18d3 100644
--- a/include/mbgl/style/layers/location_indicator_layer.hpp
+++ b/include/mbgl/style/layers/location_indicator_layer.hpp
@@ -18,7 +18,7 @@ class TransitionOptions;
class LocationIndicatorLayer final : public Layer {
public:
LocationIndicatorLayer(const std::string& layerID);
- ~LocationIndicatorLayer();
+ ~LocationIndicatorLayer() override;
// Layout properties
diff --git a/src/mbgl/gfx/offscreen_texture.hpp b/src/mbgl/gfx/offscreen_texture.hpp
index 5690ff7625..d4bf5149fd 100644
--- a/src/mbgl/gfx/offscreen_texture.hpp
+++ b/src/mbgl/gfx/offscreen_texture.hpp
@@ -15,7 +15,7 @@ protected:
}
public:
- virtual ~OffscreenTexture() = default;
+ ~OffscreenTexture() override = default;
virtual bool isRenderable() = 0;
diff --git a/src/mbgl/gl/index_buffer_resource.hpp b/src/mbgl/gl/index_buffer_resource.hpp
index 00c66be5b5..4187994a22 100644
--- a/src/mbgl/gl/index_buffer_resource.hpp
+++ b/src/mbgl/gl/index_buffer_resource.hpp
@@ -9,7 +9,7 @@ namespace gl {
class IndexBufferResource : public gfx::IndexBufferResource {
public:
IndexBufferResource(UniqueBuffer&& buffer_, int byteSize_) : buffer(std::move(buffer_)), byteSize(byteSize_) {}
- ~IndexBufferResource();
+ ~IndexBufferResource() override;
UniqueBuffer buffer;
int byteSize;
diff --git a/src/mbgl/gl/texture_resource.hpp b/src/mbgl/gl/texture_resource.hpp
index 494e5ae8a3..fd4f69084f 100644
--- a/src/mbgl/gl/texture_resource.hpp
+++ b/src/mbgl/gl/texture_resource.hpp
@@ -9,7 +9,7 @@ namespace gl {
class TextureResource : public gfx::TextureResource {
public:
TextureResource(UniqueTexture&& texture_, int byteSize_) : texture(std::move(texture_)), byteSize(byteSize_) {}
- ~TextureResource();
+ ~TextureResource() override;
static int getStorageSize(const Size& size, gfx::TexturePixelType format, gfx::TextureChannelDataType type);
diff --git a/src/mbgl/gl/vertex_buffer_resource.hpp b/src/mbgl/gl/vertex_buffer_resource.hpp
index f9c599c757..cbd73482a3 100644
--- a/src/mbgl/gl/vertex_buffer_resource.hpp
+++ b/src/mbgl/gl/vertex_buffer_resource.hpp
@@ -9,7 +9,7 @@ namespace gl {
class VertexBufferResource : public gfx::VertexBufferResource {
public:
VertexBufferResource(UniqueBuffer&& buffer_, int byteSize_) : buffer(std::move(buffer_)), byteSize(byteSize_) {}
- ~VertexBufferResource();
+ ~VertexBufferResource() override;
UniqueBuffer buffer;
int byteSize;
diff --git a/src/mbgl/renderer/render_source.hpp b/src/mbgl/renderer/render_source.hpp
index 5b6c9de1b7..8e09b46931 100644
--- a/src/mbgl/renderer/render_source.hpp
+++ b/src/mbgl/renderer/render_source.hpp
@@ -48,7 +48,7 @@ using RenderTiles = std::shared_ptr<const std::vector<std::reference_wrapper<con
class RenderSource : protected TileObserver {
public:
static std::unique_ptr<RenderSource> create(const Immutable<style::Source::Impl>&);
- virtual ~RenderSource();
+ ~RenderSource() override;
bool isEnabled() const;
virtual bool isLoaded() const = 0;