chore: use =default for default constructors/destructors (#29511)

This commit is contained in:
David Sanders 2021-06-03 21:16:13 -07:00 committed by GitHub
parent b1d1ac6524
commit 81c5da5221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 68 additions and 61 deletions

View file

@ -9,7 +9,7 @@ namespace electron {
DelayedNativeViewHost::DelayedNativeViewHost(gfx::NativeView native_view)
: native_view_(native_view) {}
DelayedNativeViewHost::~DelayedNativeViewHost() {}
DelayedNativeViewHost::~DelayedNativeViewHost() = default;
void DelayedNativeViewHost::ViewHierarchyChanged(
const views::ViewHierarchyChangedDetails& details) {

View file

@ -16,7 +16,7 @@ ElectronNativeWidgetMac::ElectronNativeWidgetMac(
shell_(shell),
style_mask_(style_mask) {}
ElectronNativeWidgetMac::~ElectronNativeWidgetMac() {}
ElectronNativeWidgetMac::~ElectronNativeWidgetMac() = default;
NativeWidgetMacNSWindow* ElectronNativeWidgetMac::CreateNSWindow(
const remote_cocoa::mojom::CreateWindowParams* params) {

View file

@ -12,7 +12,7 @@ RootViewMac::RootViewMac(NativeWindow* window) : window_(window) {
set_owned_by_client();
}
RootViewMac::~RootViewMac() {}
RootViewMac::~RootViewMac() = default;
void RootViewMac::Layout() {
if (!window_->content_view()) // Not ready yet.

View file

@ -9,9 +9,9 @@
namespace electron {
ViewsDelegateMac::ViewsDelegateMac() {}
ViewsDelegateMac::ViewsDelegateMac() = default;
ViewsDelegateMac::~ViewsDelegateMac() {}
ViewsDelegateMac::~ViewsDelegateMac() = default;
void ViewsDelegateMac::OnBeforeWidgetInit(
views::Widget::InitParams* params,