mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47: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:
parent
04c5bc5e55
commit
f2d8c488ec
7 changed files with 15 additions and 24 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
|
||||
* Copyright (c) 2021, Mustafa Quraish <mustafa@cs.toronto.edu>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
__Count
|
||||
};
|
||||
|
||||
virtual ~ClipboardHistoryModel() override;
|
||||
virtual ~ClipboardHistoryModel() override = default;
|
||||
|
||||
const GUI::Clipboard::DataAndType& item_at(int index) const { return m_history_items[index]; }
|
||||
void remove_item(int index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue