fix: modernize-use-equals-default warnings (#44935)

fix: use '= default' to define a trivial destructor [modernize-use-equals-default]
This commit is contained in:
Charles Kerr 2024-12-03 16:25:48 -06:00 committed by GitHub
parent 229c2a8f50
commit 158a87d494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 64 additions and 64 deletions

View file

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

View file

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