[core] Fix modernize-use-override errors in header files

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:30:35 +02:00
parent 47b8fc703b
commit 63ef5298cd
17 changed files with 17 additions and 17 deletions

View File

@@ -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);

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class BackgroundLayer final : public Layer {
public:
BackgroundLayer(const std::string& layerID);
~BackgroundLayer() final;
~BackgroundLayer() override;
// Paint properties

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class CircleLayer final : public Layer {
public:
CircleLayer(const std::string& layerID, const std::string& sourceID);
~CircleLayer() final;
~CircleLayer() override;
// Layout properties

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class FillExtrusionLayer final : public Layer {
public:
FillExtrusionLayer(const std::string& layerID, const std::string& sourceID);
~FillExtrusionLayer() final;
~FillExtrusionLayer() override;
// Paint properties

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class FillLayer final : public Layer {
public:
FillLayer(const std::string& layerID, const std::string& sourceID);
~FillLayer() final;
~FillLayer() override;
// Layout properties

View File

@@ -18,7 +18,7 @@ class TransitionOptions;
class HeatmapLayer final : public Layer {
public:
HeatmapLayer(const std::string& layerID, const std::string& sourceID);
~HeatmapLayer() final;
~HeatmapLayer() override;
// Paint properties

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class HillshadeLayer final : public Layer {
public:
HillshadeLayer(const std::string& layerID, const std::string& sourceID);
~HillshadeLayer() final;
~HillshadeLayer() override;
// Paint properties

View File

@@ -39,7 +39,7 @@ public:
<% } else { -%>
<%- camelize(type) %>Layer(const std::string& layerID, const std::string& sourceID);
<% } -%>
~<%- camelize(type) %>Layer() final;
~<%- camelize(type) %>Layer() override;
<% if (layoutProperties.length) { -%>
// Layout properties

View File

@@ -20,7 +20,7 @@ class TransitionOptions;
class LineLayer final : public Layer {
public:
LineLayer(const std::string& layerID, const std::string& sourceID);
~LineLayer() final;
~LineLayer() override;
// Layout properties

View File

@@ -18,7 +18,7 @@ class TransitionOptions;
class LocationIndicatorLayer final : public Layer {
public:
LocationIndicatorLayer(const std::string& layerID);
~LocationIndicatorLayer();
~LocationIndicatorLayer() override;
// Layout properties

View File

@@ -17,7 +17,7 @@ class TransitionOptions;
class RasterLayer final : public Layer {
public:
RasterLayer(const std::string& layerID, const std::string& sourceID);
~RasterLayer() final;
~RasterLayer() override;
// Paint properties

View File

@@ -20,7 +20,7 @@ class TransitionOptions;
class SymbolLayer final : public Layer {
public:
SymbolLayer(const std::string& layerID, const std::string& sourceID);
~SymbolLayer() final;
~SymbolLayer() override;
// Layout properties

View File

@@ -15,7 +15,7 @@ protected:
}
public:
virtual ~OffscreenTexture() = default;
~OffscreenTexture() override = default;
virtual bool isRenderable() = 0;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;