mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: modernize-use-equals-default warnings (#44945)
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:
@@ -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; }
|
||||
|
||||
@@ -54,7 +54,7 @@ class EventEmitter : public gin_helper::Wrappable<T> {
|
||||
EventEmitter& operator=(const EventEmitter&) = delete;
|
||||
|
||||
protected:
|
||||
EventEmitter() {}
|
||||
EventEmitter() = default;
|
||||
|
||||
private:
|
||||
// this.emit(name, event, args...);
|
||||
|
||||
Reference in New Issue
Block a user