diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-02-10 11:24:17 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-13 21:27:17 +0000 |
commit | f2d8c488ecafe6ccb733b60e053e7388bf153fba (patch) | |
tree | 7a1f36b747ef74968ff836c79d8023d5993e2613 /Userland/Applets/Keymap | |
parent | 04c5bc5e553fe3dc7f38dec0522651968fe9b596 (diff) | |
download | serenity-f2d8c488ecafe6ccb733b60e053e7388bf153fba.zip |
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."
Diffstat (limited to 'Userland/Applets/Keymap')
-rw-r--r-- | Userland/Applets/Keymap/KeymapStatusWindow.cpp | 5 | ||||
-rw-r--r-- | Userland/Applets/Keymap/KeymapStatusWindow.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Userland/Applets/Keymap/KeymapStatusWindow.cpp b/Userland/Applets/Keymap/KeymapStatusWindow.cpp index 16bb584721..d0b8c58900 100644 --- a/Userland/Applets/Keymap/KeymapStatusWindow.cpp +++ b/Userland/Applets/Keymap/KeymapStatusWindow.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -30,10 +31,6 @@ KeymapStatusWindow::KeymapStatusWindow() m_status_widget->set_text(current_keymap_name.substring(0, 2)); } -KeymapStatusWindow::~KeymapStatusWindow() -{ -} - void KeymapStatusWindow::wm_event(GUI::WMEvent& event) { if (event.type() == GUI::WMEvent::WM_KeymapChanged) { diff --git a/Userland/Applets/Keymap/KeymapStatusWindow.h b/Userland/Applets/Keymap/KeymapStatusWindow.h index fbd5caf9f6..4a2a5b1fdd 100644 --- a/Userland/Applets/Keymap/KeymapStatusWindow.h +++ b/Userland/Applets/Keymap/KeymapStatusWindow.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -17,7 +18,7 @@ class KeymapStatusWidget : public GUI::Label { class KeymapStatusWindow final : public GUI::Window { C_OBJECT(KeymapStatusWindow) public: - virtual ~KeymapStatusWindow() override; + virtual ~KeymapStatusWindow() override = default; private: virtual void wm_event(GUI::WMEvent&) override; |