chore: use =default for default constructors/destructors (#29511)
This commit is contained in:
parent
b1d1ac6524
commit
81c5da5221
44 changed files with 68 additions and 61 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
namespace electron {
|
||||
|
||||
ViewsDelegateMac::ViewsDelegateMac() {}
|
||||
ViewsDelegateMac::ViewsDelegateMac() = default;
|
||||
|
||||
ViewsDelegateMac::~ViewsDelegateMac() {}
|
||||
ViewsDelegateMac::~ViewsDelegateMac() = default;
|
||||
|
||||
void ViewsDelegateMac::OnBeforeWidgetInit(
|
||||
views::Widget::InitParams* params,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue