diff --git a/Userland/Libraries/LibMarkdown/Block.h b/Userland/Libraries/LibMarkdown/Block.h index ed71c9933e..c77e078e10 100644 --- a/Userland/Libraries/LibMarkdown/Block.h +++ b/Userland/Libraries/LibMarkdown/Block.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -15,7 +16,7 @@ namespace Markdown { class Block { public: - virtual ~Block() { } + virtual ~Block() = default; virtual String render_to_html(bool tight = false) const = 0; virtual String render_for_terminal(size_t view_width = 0) const = 0; diff --git a/Userland/Libraries/LibMarkdown/BlockQuote.h b/Userland/Libraries/LibMarkdown/BlockQuote.h index a3eacdb0e7..c040972d29 100644 --- a/Userland/Libraries/LibMarkdown/BlockQuote.h +++ b/Userland/Libraries/LibMarkdown/BlockQuote.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Peter Elliott + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -18,7 +19,7 @@ public: : m_contents(move(contents)) { } - virtual ~BlockQuote() override { } + virtual ~BlockQuote() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/CodeBlock.h b/Userland/Libraries/LibMarkdown/CodeBlock.h index aa6c7f099b..cac5d9418d 100644 --- a/Userland/Libraries/LibMarkdown/CodeBlock.h +++ b/Userland/Libraries/LibMarkdown/CodeBlock.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -21,7 +22,7 @@ public: , m_style(style) { } - virtual ~CodeBlock() override { } + virtual ~CodeBlock() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/CommentBlock.h b/Userland/Libraries/LibMarkdown/CommentBlock.h index e557efd7cf..062496654b 100644 --- a/Userland/Libraries/LibMarkdown/CommentBlock.h +++ b/Userland/Libraries/LibMarkdown/CommentBlock.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Ben Wiederhake + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -19,7 +20,7 @@ public: : m_comment(comment) { } - virtual ~CommentBlock() override { } + virtual ~CommentBlock() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/ContainerBlock.h b/Userland/Libraries/LibMarkdown/ContainerBlock.h index e1fe9a9b28..c79da2b075 100644 --- a/Userland/Libraries/LibMarkdown/ContainerBlock.h +++ b/Userland/Libraries/LibMarkdown/ContainerBlock.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Peter Elliott + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -23,7 +24,7 @@ public: { } - virtual ~ContainerBlock() override { } + virtual ~ContainerBlock() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/Heading.h b/Userland/Libraries/LibMarkdown/Heading.h index da8dc49102..1d479621e9 100644 --- a/Userland/Libraries/LibMarkdown/Heading.h +++ b/Userland/Libraries/LibMarkdown/Heading.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -23,7 +24,7 @@ public: { VERIFY(m_level > 0); } - virtual ~Heading() override { } + virtual ~Heading() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/HorizontalRule.h b/Userland/Libraries/LibMarkdown/HorizontalRule.h index affa84842a..5d71aafcda 100644 --- a/Userland/Libraries/LibMarkdown/HorizontalRule.h +++ b/Userland/Libraries/LibMarkdown/HorizontalRule.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Andreas Kling + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -16,10 +17,8 @@ namespace Markdown { class HorizontalRule final : public Block { public: - HorizontalRule() - { - } - virtual ~HorizontalRule() override { } + HorizontalRule() = default; + virtual ~HorizontalRule() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/List.h b/Userland/Libraries/LibMarkdown/List.h index 5e62a78a6c..735028b3dd 100644 --- a/Userland/Libraries/LibMarkdown/List.h +++ b/Userland/Libraries/LibMarkdown/List.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -22,7 +23,7 @@ public: , m_start_number(start_number) { } - virtual ~List() override { } + virtual ~List() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/Paragraph.h b/Userland/Libraries/LibMarkdown/Paragraph.h index e2af98a717..fceb3c158d 100644 --- a/Userland/Libraries/LibMarkdown/Paragraph.h +++ b/Userland/Libraries/LibMarkdown/Paragraph.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -20,7 +21,7 @@ public: { } - virtual ~Paragraph() override { } + virtual ~Paragraph() override = default; virtual String render_to_html(bool tight = false) const override; virtual String render_for_terminal(size_t view_width = 0) const override; diff --git a/Userland/Libraries/LibMarkdown/Table.h b/Userland/Libraries/LibMarkdown/Table.h index c0073a0ad9..dcc25b2f86 100644 --- a/Userland/Libraries/LibMarkdown/Table.h +++ b/Userland/Libraries/LibMarkdown/Table.h @@ -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; diff --git a/Userland/Libraries/LibMarkdown/Text.h b/Userland/Libraries/LibMarkdown/Text.h index c4435368e2..ad76d5ecea 100644 --- a/Userland/Libraries/LibMarkdown/Text.h +++ b/Userland/Libraries/LibMarkdown/Text.h @@ -1,6 +1,7 @@ /* * Copyright (c) 2019-2020, Sergey Bugaev * Copyright (c) 2021, Peter Elliott + * 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 {