mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +00:00
Libraries: Use default constructors/destructors in LibMarkdown
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
103ce2f9e9
commit
dd08e84664
Notes:
sideshowbarker
2024-07-17 17:29:08 +09:00
Author: https://github.com/ldm5180
Commit: dd08e84664
Pull-request: https://github.com/SerenityOS/serenity/pull/13017
11 changed files with 24 additions and 16 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
|
||||
* Copyright (c) 2021, Peter Elliott <pelliott@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
virtual size_t terminal_length() const = 0;
|
||||
virtual RecursionDecision walk(Visitor&) const = 0;
|
||||
|
||||
virtual ~Node() { }
|
||||
virtual ~Node() = default;
|
||||
};
|
||||
|
||||
class EmphasisNode : public Node {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue