From 7ac7ac13f5feb3e67546454158e1095e5efaab44 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Sun, 12 Jun 2016 14:47:01 +0300 Subject: [PATCH] [tidy] Check modernize-use-default Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-default.html --- src/mbgl/geometry/glyph_atlas.cpp | 3 +-- src/mbgl/geometry/line_atlas.cpp | 3 +-- src/mbgl/geometry/vao.cpp | 3 +-- src/mbgl/gl/texture_pool.cpp | 3 +-- src/mbgl/renderer/fill_bucket.cpp | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/mbgl/geometry/glyph_atlas.cpp b/src/mbgl/geometry/glyph_atlas.cpp index 524b99c12..f5b4d22ce 100644 --- a/src/mbgl/geometry/glyph_atlas.cpp +++ b/src/mbgl/geometry/glyph_atlas.cpp @@ -19,8 +19,7 @@ GlyphAtlas::GlyphAtlas(uint16_t width_, uint16_t height_) dirty(true) { } -GlyphAtlas::~GlyphAtlas() { -} +GlyphAtlas::~GlyphAtlas() = default; void GlyphAtlas::addGlyphs(uintptr_t tileUID, const std::u32string& text, diff --git a/src/mbgl/geometry/line_atlas.cpp b/src/mbgl/geometry/line_atlas.cpp index b1f012d48..cf79c874c 100644 --- a/src/mbgl/geometry/line_atlas.cpp +++ b/src/mbgl/geometry/line_atlas.cpp @@ -18,8 +18,7 @@ LineAtlas::LineAtlas(GLsizei w, GLsizei h) dirty(true) { } -LineAtlas::~LineAtlas() { -} +LineAtlas::~LineAtlas() = default; LinePatternPos LineAtlas::getDashPosition(const std::vector &dasharray, bool round, gl::ObjectStore& store) { size_t key = round ? std::numeric_limits::min() : std::numeric_limits::max(); diff --git a/src/mbgl/geometry/vao.cpp b/src/mbgl/geometry/vao.cpp index 46f10cb48..d797a11b4 100644 --- a/src/mbgl/geometry/vao.cpp +++ b/src/mbgl/geometry/vao.cpp @@ -13,8 +13,7 @@ void VertexArrayObject::Unbind() { VertexArrayObject::VertexArrayObject() { } -VertexArrayObject::~VertexArrayObject() { -} +VertexArrayObject::~VertexArrayObject() = default; void VertexArrayObject::bindVertexArrayObject(gl::ObjectStore& store) { if (!gl::GenVertexArrays || !gl::BindVertexArray) { diff --git a/src/mbgl/gl/texture_pool.cpp b/src/mbgl/gl/texture_pool.cpp index c4984b018..9e90c97db 100644 --- a/src/mbgl/gl/texture_pool.cpp +++ b/src/mbgl/gl/texture_pool.cpp @@ -64,8 +64,7 @@ void TextureReleaser::operator()(GLuint id) const { TexturePool::TexturePool() : impl(std::make_unique()) { } -TexturePool::~TexturePool() { -} +TexturePool::~TexturePool() = default; PooledTexture TexturePool::acquireTexture(gl::ObjectStore& store) { return PooledTexture { impl->acquireTexture(store) , { this } }; diff --git a/src/mbgl/renderer/fill_bucket.cpp b/src/mbgl/renderer/fill_bucket.cpp index f45d0ae6a..df8b01c47 100644 --- a/src/mbgl/renderer/fill_bucket.cpp +++ b/src/mbgl/renderer/fill_bucket.cpp @@ -33,8 +33,7 @@ struct GeometryTooLongException : std::exception {}; FillBucket::FillBucket() { } -FillBucket::~FillBucket() { -} +FillBucket::~FillBucket() = default; void FillBucket::addGeometry(const GeometryCollection& geometry) { for (auto& polygon : classifyRings(geometry)) {