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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue