summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-20 12:38:09 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-23 17:17:56 +0200
commitbf335819c5a5228d6342f4397f866827f11f2678 (patch)
tree0bc673694693b087916b219a22e2168e3c242f9c
parent372be851c624261ab4ecce3a06b8bdfa01601938 (diff)
downloadqtlocation-mapboxgl-bf335819c5a5228d6342f4397f866827f11f2678.tar.gz
[core] Fix modernize-use-equals-default errors
As reported by clang-tidy-8.
-rw-r--r--platform/default/src/mbgl/storage/sqlite3.cpp1
-rw-r--r--platform/default/src/mbgl/text/local_glyph_rasterizer.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/default/src/mbgl/storage/sqlite3.cpp b/platform/default/src/mbgl/storage/sqlite3.cpp
index 3eb5194e2c..69d03c4e00 100644
--- a/platform/default/src/mbgl/storage/sqlite3.cpp
+++ b/platform/default/src/mbgl/storage/sqlite3.cpp
@@ -187,6 +187,7 @@ Statement::Statement(Database& db, const char* sql)
: impl(std::make_unique<StatementImpl>(db.impl->db, sql)) {
}
+// NOLINTNEXTLINE(modernize-use-equals-default)
Statement::~Statement() {
#ifndef NDEBUG
// Crash if we're destructing this object while we know a Query object references this.
diff --git a/platform/default/src/mbgl/text/local_glyph_rasterizer.cpp b/platform/default/src/mbgl/text/local_glyph_rasterizer.cpp
index 6eea2f94d8..1aea1857fd 100644
--- a/platform/default/src/mbgl/text/local_glyph_rasterizer.cpp
+++ b/platform/default/src/mbgl/text/local_glyph_rasterizer.cpp
@@ -7,8 +7,7 @@ class LocalGlyphRasterizer::Impl {
LocalGlyphRasterizer::LocalGlyphRasterizer(const optional<std::string>&) {}
-LocalGlyphRasterizer::~LocalGlyphRasterizer()
-{}
+LocalGlyphRasterizer::~LocalGlyphRasterizer() = default;
bool LocalGlyphRasterizer::canRasterizeGlyph(const FontStack&, GlyphID) {
return false;