diff options
Diffstat (limited to 'Userland/Libraries/LibVT')
-rw-r--r-- | Userland/Libraries/LibVT/EscapeSequenceParser.cpp | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/EscapeSequenceParser.h | 6 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/Line.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/Line.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/Range.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/Terminal.h | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/TerminalWidget.h | 3 |
8 files changed, 14 insertions, 21 deletions
diff --git a/Userland/Libraries/LibVT/EscapeSequenceParser.cpp b/Userland/Libraries/LibVT/EscapeSequenceParser.cpp index 9d3a059bc6..249b5478bc 100644 --- a/Userland/Libraries/LibVT/EscapeSequenceParser.cpp +++ b/Userland/Libraries/LibVT/EscapeSequenceParser.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, the SerenityOS developers. + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -16,10 +16,6 @@ EscapeSequenceParser::EscapeSequenceParser(EscapeSequenceExecutor& executor) { } -EscapeSequenceParser::~EscapeSequenceParser() -{ -} - Vector<EscapeSequenceParser::OscParameter> EscapeSequenceParser::osc_parameters() const { VERIFY(m_osc_raw.size() >= m_osc_parameter_indexes.last()); diff --git a/Userland/Libraries/LibVT/EscapeSequenceParser.h b/Userland/Libraries/LibVT/EscapeSequenceParser.h index 4a05bedcb4..5f4b5ad87d 100644 --- a/Userland/Libraries/LibVT/EscapeSequenceParser.h +++ b/Userland/Libraries/LibVT/EscapeSequenceParser.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, the SerenityOS developers. + * Copyright (c) 2021-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -17,7 +17,7 @@ namespace VT { class EscapeSequenceExecutor { public: - virtual ~EscapeSequenceExecutor() { } + virtual ~EscapeSequenceExecutor() = default; using Parameters = Span<const unsigned>; using Intermediates = Span<const u8>; @@ -37,7 +37,7 @@ public: class EscapeSequenceParser { public: explicit EscapeSequenceParser(EscapeSequenceExecutor&); - ~EscapeSequenceParser(); + ~EscapeSequenceParser() = default; ALWAYS_INLINE void on_input(u8 byte) { diff --git a/Userland/Libraries/LibVT/Line.cpp b/Userland/Libraries/LibVT/Line.cpp index 721684f428..bf348d4371 100644 --- a/Userland/Libraries/LibVT/Line.cpp +++ b/Userland/Libraries/LibVT/Line.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -13,10 +14,6 @@ Line::Line(size_t length) set_length(length); } -Line::~Line() -{ -} - void Line::rewrap(size_t new_length, Line* next_line, CursorPosition* cursor, bool cursor_is_on_next_line) { size_t old_length = length(); diff --git a/Userland/Libraries/LibVT/Line.h b/Userland/Libraries/LibVT/Line.h index 0768fb6168..09f9989868 100644 --- a/Userland/Libraries/LibVT/Line.h +++ b/Userland/Libraries/LibVT/Line.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -21,7 +22,7 @@ class Line { public: explicit Line(size_t length); - ~Line(); + ~Line() = default; struct Cell { u32 code_point { ' ' }; diff --git a/Userland/Libraries/LibVT/Range.h b/Userland/Libraries/LibVT/Range.h index dcb51cb85f..db3cb9015c 100644 --- a/Userland/Libraries/LibVT/Range.h +++ b/Userland/Libraries/LibVT/Range.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, the SerenityOS developers. + * Copyright (c) 2020-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -12,7 +12,7 @@ namespace VT { class Range { public: - Range() { } + Range() = default; Range(const VT::Position& start, const VT::Position& end) : m_start(start) , m_end(end) diff --git a/Userland/Libraries/LibVT/Terminal.h b/Userland/Libraries/LibVT/Terminal.h index f7b0693c5e..6e8828f717 100644 --- a/Userland/Libraries/LibVT/Terminal.h +++ b/Userland/Libraries/LibVT/Terminal.h @@ -1,6 +1,7 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, Daniel Bertalan <dani@danielbertalan.dev> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -45,7 +46,7 @@ enum CursorKeysMode { class TerminalClient { public: - virtual ~TerminalClient() { } + virtual ~TerminalClient() = default; virtual void beep() = 0; virtual void set_window_title(StringView) = 0; diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index 2068a40256..a2bbb05a97 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -149,10 +150,6 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy) set_color_scheme(Config::read_string("Terminal", "Window", "ColorScheme", "Default")); } -TerminalWidget::~TerminalWidget() -{ -} - Gfx::IntRect TerminalWidget::glyph_rect(u16 row, u16 column) { int y = row * m_line_height; diff --git a/Userland/Libraries/LibVT/TerminalWidget.h b/Userland/Libraries/LibVT/TerminalWidget.h index 109e3cb418..aeadd8b00c 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.h +++ b/Userland/Libraries/LibVT/TerminalWidget.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -27,7 +28,7 @@ class TerminalWidget final C_OBJECT(TerminalWidget); public: - virtual ~TerminalWidget() override; + virtual ~TerminalWidget() override = default; void set_pty_master_fd(int fd); void inject_string(StringView string) |