[tidy] Check modernize-use-default

Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-default.html
This commit is contained in:
Bruno de Oliveira Abinader
2016-06-12 14:47:01 +03:00
parent 4d75001e9a
commit 7ac7ac13f5
5 changed files with 5 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

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