From 9894e58047f75994075083d2a5e0c4b3207169b0 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 9 May 2017 10:41:07 +0300 Subject: [tidy] modernize-use-override --- platform/default/mbgl/gl/offscreen_view.hpp | 2 +- platform/linux/src/headless_backend_glx.cpp | 2 +- src/mbgl/renderer/render_source.hpp | 2 +- src/mbgl/util/offscreen_texture.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/default/mbgl/gl/offscreen_view.hpp b/platform/default/mbgl/gl/offscreen_view.hpp index bf1a9889cd..eb888272e5 100644 --- a/platform/default/mbgl/gl/offscreen_view.hpp +++ b/platform/default/mbgl/gl/offscreen_view.hpp @@ -12,7 +12,7 @@ class Context; class OffscreenView : public View { public: OffscreenView(gl::Context&, Size size = { 256, 256 }); - ~OffscreenView(); + ~OffscreenView() override; void bind() override; diff --git a/platform/linux/src/headless_backend_glx.cpp b/platform/linux/src/headless_backend_glx.cpp index 1c1592ac75..7c6e679fce 100644 --- a/platform/linux/src/headless_backend_glx.cpp +++ b/platform/linux/src/headless_backend_glx.cpp @@ -17,7 +17,7 @@ struct GLXImpl : public HeadlessBackend::Impl { fbConfigs(fbConfigs_) { } - ~GLXImpl() { + ~GLXImpl() override { if (glxPbuffer) { glXDestroyPbuffer(xDisplay, glxPbuffer); } diff --git a/src/mbgl/renderer/render_source.hpp b/src/mbgl/renderer/render_source.hpp index d31347579e..e682e4cd1a 100644 --- a/src/mbgl/renderer/render_source.hpp +++ b/src/mbgl/renderer/render_source.hpp @@ -30,7 +30,7 @@ class ClipIDGenerator; class RenderSource : protected TileObserver { public: RenderSource(const style::Source::Impl&); - virtual ~RenderSource() = default; + ~RenderSource() override = default; virtual bool isLoaded() const = 0; diff --git a/src/mbgl/util/offscreen_texture.hpp b/src/mbgl/util/offscreen_texture.hpp index ae96286340..c265700555 100644 --- a/src/mbgl/util/offscreen_texture.hpp +++ b/src/mbgl/util/offscreen_texture.hpp @@ -20,7 +20,7 @@ public: OffscreenTexture(gl::Context&, Size size = { 256, 256 }, OffscreenTextureAttachment type = OffscreenTextureAttachment::None); - ~OffscreenTexture(); + ~OffscreenTexture() override; OffscreenTexture(OffscreenTexture&&); OffscreenTexture& operator=(OffscreenTexture&&); -- cgit v1.2.1