[core] use default instead of empty function body
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user