mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +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
11 changed files with 24 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
* Copyright (c) 2020-2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -31,8 +31,8 @@ public:
|
|||
RecursionDecision walk(Visitor&) const;
|
||||
};
|
||||
|
||||
Table() { }
|
||||
virtual ~Table() override { }
|
||||
Table() = default;
|
||||
virtual ~Table() override = default;
|
||||
|
||||
virtual String render_to_html(bool tight = false) const override;
|
||||
virtual String render_for_terminal(size_t view_width = 0) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue