1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Userland/Applets: Use default constructors/destructors

https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
This commit is contained in:
Lenny Maiorani 2022-02-10 11:24:17 -07:00 committed by Linus Groh
parent 04c5bc5e55
commit f2d8c488ec
7 changed files with 15 additions and 24 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Peter Elliott <pelliott@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -15,9 +16,7 @@ class DesktopStatusWidget : public GUI::Widget {
C_OBJECT(DesktopStatusWidget);
public:
virtual ~DesktopStatusWidget() override
{
}
virtual ~DesktopStatusWidget() override = default;
Gfx::IntRect rect_for_desktop(unsigned row, unsigned col) const
{
@ -94,14 +93,12 @@ public:
unsigned gap() const { return m_gap; }
private:
DesktopStatusWidget()
{
}
DesktopStatusWidget() = default;
unsigned m_gap { 1 };
unsigned m_current_row;
unsigned m_current_col;
unsigned m_current_row { 0 };
unsigned m_current_col { 0 };
};
DesktopStatusWindow::DesktopStatusWindow()
@ -114,10 +111,6 @@ DesktopStatusWindow::DesktopStatusWindow()
m_widget = &set_main_widget<DesktopStatusWidget>();
}
DesktopStatusWindow::~DesktopStatusWindow()
{
}
void DesktopStatusWindow::wm_event(GUI::WMEvent& event)
{
if (event.type() == GUI::Event::WM_WorkspaceChanged) {