summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-12 14:47:01 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-13 23:32:06 +0300
commit7ac7ac13f5feb3e67546454158e1095e5efaab44 (patch)
tree24011a7058ec056a9e8a8ff874bbb9bb89da59c7
parent4d75001e9af268cca015a46cc0465e39dd4eb971 (diff)
downloadqtlocation-mapboxgl-7ac7ac13f5feb3e67546454158e1095e5efaab44.tar.gz
[tidy] Check modernize-use-default
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-default.html
-rw-r--r--src/mbgl/geometry/glyph_atlas.cpp3
-rw-r--r--src/mbgl/geometry/line_atlas.cpp3
-rw-r--r--src/mbgl/geometry/vao.cpp3
-rw-r--r--src/mbgl/gl/texture_pool.cpp3
-rw-r--r--src/mbgl/renderer/fill_bucket.cpp3
5 files changed, 5 insertions, 10 deletions
diff --git a/src/mbgl/geometry/glyph_atlas.cpp b/src/mbgl/geometry/glyph_atlas.cpp
index 524b99c12b..f5b4d22cee 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 b1f012d484..cf79c874ce 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<float> &dasharray, bool round, gl::ObjectStore& store) {
size_t key = round ? std::numeric_limits<size_t>::min() : std::numeric_limits<size_t>::max();
diff --git a/src/mbgl/geometry/vao.cpp b/src/mbgl/geometry/vao.cpp
index 46f10cb48c..d797a11b41 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 c4984b0186..9e90c97db7 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<Impl>()) {
}
-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 f45d0ae6ae..df8b01c474 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)) {