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

fix: use '= default' to define a trivial destructor [modernize-use-equals-default]

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2024-12-03 21:19:32 -06:00 committed by GitHub
parent 7f6594654c
commit a7066af0f9
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

@ -50,7 +50,7 @@ class EventEmitter : public gin_helper::Wrappable<T> {
EventEmitter& operator=(const EventEmitter&) = delete;
protected:
EventEmitter() {}
EventEmitter() = default;
private:
// this.emit(name, event, args...);