fix: modernize-use-equals-default warnings (#44935)
fix: use '= default' to define a trivial destructor [modernize-use-equals-default]
This commit is contained in:
parent
229c2a8f50
commit
158a87d494
14 changed files with 64 additions and 64 deletions
|
@ -12,7 +12,7 @@
|
|||
// SkColor is a typedef for uint32_t, this wrapper is to tag an SkColor for
|
||||
// ease of use in gin converters.
|
||||
struct WrappedSkColor {
|
||||
WrappedSkColor() {}
|
||||
WrappedSkColor() = default;
|
||||
WrappedSkColor(SkColor c) : value(c) {} // NOLINT(runtime/explicit)
|
||||
SkColor value;
|
||||
operator SkColor() const { return value; }
|
||||
|
|
|
@ -61,7 +61,7 @@ class EventEmitter : public gin_helper::Wrappable<T> {
|
|||
EventEmitter& operator=(const EventEmitter&) = delete;
|
||||
|
||||
protected:
|
||||
EventEmitter() {}
|
||||
EventEmitter() = default;
|
||||
|
||||
private:
|
||||
// this.emit(name, event, args...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue