[core] use default instead of empty function body

This commit is contained in:
Konstantin Käfer
2015-12-01 23:09:03 +01:00
parent 478472e501
commit 0c351eb523
8 changed files with 11 additions and 14 deletions

View File

@@ -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;

View File

@@ -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());

View File

@@ -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;

View File

@@ -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 {