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. --- include/mbgl/map/camera.hpp | 2 +- include/mbgl/style/filter.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp index c8b665fc16..726c009231 100644 --- a/include/mbgl/map/camera.hpp +++ b/include/mbgl/map/camera.hpp @@ -89,7 +89,7 @@ struct AnimationOptions { std::function transitionFinishFn; /** Creates an animation with no options specified. */ - AnimationOptions() {} + AnimationOptions() = default; /** Creates an animation with the specified duration. */ AnimationOptions(Duration d) diff --git a/include/mbgl/style/filter.hpp b/include/mbgl/style/filter.hpp index 5e14bccacc..c3ce6833fb 100644 --- a/include/mbgl/style/filter.hpp +++ b/include/mbgl/style/filter.hpp @@ -18,7 +18,7 @@ public: private: optional legacyFilter; public: - Filter() {} + Filter() = default; Filter(expression::ParseResult _expression, optional _filter = {}) : expression(std::move(*_expression)), -- cgit v1.2.1