diff options
Diffstat (limited to 'Userland/Applications/FileManager')
4 files changed, 7 insertions, 15 deletions
diff --git a/Userland/Applications/FileManager/DesktopWidget.cpp b/Userland/Applications/FileManager/DesktopWidget.cpp index 956773538b..64b6989a61 100644 --- a/Userland/Applications/FileManager/DesktopWidget.cpp +++ b/Userland/Applications/FileManager/DesktopWidget.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -9,14 +10,6 @@ namespace FileManager { -DesktopWidget::DesktopWidget() -{ -} - -DesktopWidget::~DesktopWidget() -{ -} - void DesktopWidget::paint_event(GUI::PaintEvent& event) { GUI::Painter painter(*this); diff --git a/Userland/Applications/FileManager/DesktopWidget.h b/Userland/Applications/FileManager/DesktopWidget.h index 708af99981..0a4a2a7a03 100644 --- a/Userland/Applications/FileManager/DesktopWidget.h +++ b/Userland/Applications/FileManager/DesktopWidget.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -14,12 +15,12 @@ class DesktopWidget final : public GUI::Widget { C_OBJECT(DesktopWidget); public: - virtual ~DesktopWidget() override; + virtual ~DesktopWidget() override = default; private: virtual void paint_event(GUI::PaintEvent&) override; - DesktopWidget(); + DesktopWidget() = default; }; } diff --git a/Userland/Applications/FileManager/PropertiesWindow.cpp b/Userland/Applications/FileManager/PropertiesWindow.cpp index dbff9c91f6..ac83c0986f 100644 --- a/Userland/Applications/FileManager/PropertiesWindow.cpp +++ b/Userland/Applications/FileManager/PropertiesWindow.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -162,10 +163,6 @@ PropertiesWindow::PropertiesWindow(String const& path, bool disable_rename, Wind update(); } -PropertiesWindow::~PropertiesWindow() -{ -} - void PropertiesWindow::update() { m_icon->set_bitmap(GUI::FileIconProvider::icon_for_path(make_full_path(m_name), m_mode).bitmap_for_size(32)); diff --git a/Userland/Applications/FileManager/PropertiesWindow.h b/Userland/Applications/FileManager/PropertiesWindow.h index b8704ef483..c1150a8deb 100644 --- a/Userland/Applications/FileManager/PropertiesWindow.h +++ b/Userland/Applications/FileManager/PropertiesWindow.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -18,7 +19,7 @@ class PropertiesWindow final : public GUI::Window { C_OBJECT(PropertiesWindow); public: - virtual ~PropertiesWindow() override; + virtual ~PropertiesWindow() override = default; private: PropertiesWindow(String const& path, bool disable_rename, Window* parent = nullptr); |