mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
Libraries: Use default constructors/destructors in LibLine
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
dcdc62323d
commit
103ce2f9e9
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
* Copyright (c) 2020-2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -18,7 +18,7 @@ class Editor;
|
|||
|
||||
class SuggestionDisplay {
|
||||
public:
|
||||
virtual ~SuggestionDisplay() { }
|
||||
virtual ~SuggestionDisplay() = default;
|
||||
virtual void display(SuggestionManager const&) = 0;
|
||||
virtual bool cleanup() = 0;
|
||||
virtual void finish() = 0;
|
||||
|
@ -62,7 +62,7 @@ public:
|
|||
, m_num_columns(columns)
|
||||
{
|
||||
}
|
||||
virtual ~XtermSuggestionDisplay() override { }
|
||||
virtual ~XtermSuggestionDisplay() override = default;
|
||||
virtual void display(SuggestionManager const&) override;
|
||||
virtual bool cleanup() override;
|
||||
virtual void finish() override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue