From 542c11ae63f4afff2e0c84712019c0f9f19ef590 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 27 Mar 2020 18:30:35 +0200 Subject: [core] Fix modernize-use-equals-default errors in header files As reported by clang-tidy-8. --- src/mbgl/layout/symbol_projection.hpp | 3 +-- src/mbgl/text/collision_feature.hpp | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mbgl') diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp index e04f8908b6..598073bf55 100644 --- a/src/mbgl/layout/symbol_projection.hpp +++ b/src/mbgl/layout/symbol_projection.hpp @@ -30,8 +30,7 @@ namespace mbgl { {} PlacedGlyph(PlacedGlyph&& other) noexcept : point(other.point), angle(other.angle), tileDistance(std::move(other.tileDistance)) {} - PlacedGlyph(const PlacedGlyph& other) - : point(other.point), angle(other.angle), tileDistance(other.tileDistance) {} + PlacedGlyph(const PlacedGlyph& other) = default; Point point; float angle; optional tileDistance; diff --git a/src/mbgl/text/collision_feature.hpp b/src/mbgl/text/collision_feature.hpp index f9ad659570..2486600832 100644 --- a/src/mbgl/text/collision_feature.hpp +++ b/src/mbgl/text/collision_feature.hpp @@ -36,9 +36,10 @@ public: private: union Geometry { + // NOLINTNEXTLINE(modernize-use-equals-default) + Geometry() {} Geometry(float x1, float y1, float x2, float y2) : box({x1, y1}, {x2, y2}) {} Geometry(float x, float y, float r) : circle({x, y}, r) {} - Geometry() {} mapbox::geometry::box box; geometry::circle circle; } geometry; -- cgit v1.2.1