summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-12-01 23:09:03 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-12-03 15:38:36 +0100
commit0c351eb523d80fa534bd239b6d5e677e3d5635bb (patch)
tree4669ab13b22b2ba110241e483f3d75bcfcdd30eb /src/mbgl
parent478472e501a6aa579174f547277176c19104deb1 (diff)
downloadqtlocation-mapboxgl-0c351eb523d80fa534bd239b6d5e677e3d5635bb.tar.gz
[core] use `default` instead of empty function body
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/renderer/bucket.hpp2
-rw-r--r--src/mbgl/renderer/painter.cpp3
-rw-r--r--src/mbgl/util/rect.hpp2
-rw-r--r--src/mbgl/util/transition.cpp2
4 files changed, 4 insertions, 5 deletions
diff --git a/src/mbgl/renderer/bucket.hpp b/src/mbgl/renderer/bucket.hpp
index f99f2a7a62..b7cbfdf0fe 100644
--- a/src/mbgl/renderer/bucket.hpp
+++ b/src/mbgl/renderer/bucket.hpp
@@ -30,7 +30,7 @@ public:
// once or twice (for Opaque and Transparent render passes).
virtual void render(Painter&, const StyleLayer&, const TileID&, const mat4&) = 0;
- virtual ~Bucket() {}
+ virtual ~Bucket() = default;
virtual bool hasData() const = 0;
diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp
index 49b4526f58..e4991b8086 100644
--- a/src/mbgl/renderer/painter.cpp
+++ b/src/mbgl/renderer/painter.cpp
@@ -48,8 +48,7 @@ Painter::Painter(MapData& data_, TransformState& state_)
setup();
}
-Painter::~Painter() {
-}
+Painter::~Painter() = default;
bool Painter::needsAnimation() const {
return frameHistory.needsAnimation(data.getDefaultFadeDuration());
diff --git a/src/mbgl/util/rect.hpp b/src/mbgl/util/rect.hpp
index 71d8078447..7bb3214b9b 100644
--- a/src/mbgl/util/rect.hpp
+++ b/src/mbgl/util/rect.hpp
@@ -5,7 +5,7 @@ namespace mbgl {
template <typename T>
struct Rect {
- inline Rect() {}
+ inline Rect() = default;
inline Rect(T x_, T y_, T w_, T h_) : x(x_), y(y_), w(w_), h(h_) {}
T x = 0, y = 0;
T w = 0, h = 0;
diff --git a/src/mbgl/util/transition.cpp b/src/mbgl/util/transition.cpp
index 79611f5348..16e13108d2 100644
--- a/src/mbgl/util/transition.cpp
+++ b/src/mbgl/util/transition.cpp
@@ -7,7 +7,7 @@ namespace mbgl { namespace util {
UnitBezier ease(0, 0, 0.25, 1);
-transition::~transition() {}
+transition::~transition() = default;
template <typename T>
transition::state ease_transition<T>::update(const TimePoint& now) const {