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,

View file

@ -13,9 +13,9 @@ namespace electron {
const char WinFrameView::kViewClassName[] = "WinFrameView";
WinFrameView::WinFrameView() {}
WinFrameView::WinFrameView() = default;
WinFrameView::~WinFrameView() {}
WinFrameView::~WinFrameView() = default;
gfx::Rect WinFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {

View file

@ -23,7 +23,7 @@ ElectronDesktopWindowTreeHostWin::ElectronDesktopWindowTreeHostWin(
desktop_native_widget_aura),
native_window_view_(native_window_view) {}
ElectronDesktopWindowTreeHostWin::~ElectronDesktopWindowTreeHostWin() {}
ElectronDesktopWindowTreeHostWin::~ElectronDesktopWindowTreeHostWin() = default;
bool ElectronDesktopWindowTreeHostWin::PreHandleMSG(UINT message,
WPARAM w_param,

View file

@ -55,9 +55,9 @@ TaskbarHost::ThumbarButton::ThumbarButton(const TaskbarHost::ThumbarButton&) =
default;
TaskbarHost::ThumbarButton::~ThumbarButton() = default;
TaskbarHost::TaskbarHost() {}
TaskbarHost::TaskbarHost() = default;
TaskbarHost::~TaskbarHost() {}
TaskbarHost::~TaskbarHost() = default;
bool TaskbarHost::SetThumbarButtons(HWND window,
const std::vector<ThumbarButton>& buttons) {