summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commit542c11ae63f4afff2e0c84712019c0f9f19ef590 (patch)
treecd311047bb500687a84a79d819c9af5fd9d770e3 /include/mbgl
parent7751e4be762857b91f7dfa5c10f0f024aebd0079 (diff)
downloadqtlocation-mapboxgl-542c11ae63f4afff2e0c84712019c0f9f19ef590.tar.gz
[core] Fix modernize-use-equals-default errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/map/camera.hpp2
-rw-r--r--include/mbgl/style/filter.hpp2
2 files changed, 2 insertions, 2 deletions
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<void()> 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<mbgl::Value> legacyFilter;
public:
- Filter() {}
+ Filter() = default;
Filter(expression::ParseResult _expression, optional<mbgl::Value> _filter = {})
: expression(std::move(*_expression)),