diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-12 14:47:01 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 23:32:06 +0300 |
commit | 7ac7ac13f5feb3e67546454158e1095e5efaab44 (patch) | |
tree | 24011a7058ec056a9e8a8ff874bbb9bb89da59c7 /src/mbgl/geometry | |
parent | 4d75001e9af268cca015a46cc0465e39dd4eb971 (diff) | |
download | qtlocation-mapboxgl-7ac7ac13f5feb3e67546454158e1095e5efaab44.tar.gz |
[tidy] Check modernize-use-default
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-default.html
Diffstat (limited to 'src/mbgl/geometry')
-rw-r--r-- | src/mbgl/geometry/glyph_atlas.cpp | 3 | ||||
-rw-r--r-- | src/mbgl/geometry/line_atlas.cpp | 3 | ||||
-rw-r--r-- | src/mbgl/geometry/vao.cpp | 3 |
3 files changed, 3 insertions, 6 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) { |