summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-26 10:30:59 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-10 18:04:26 -0800
commit59b7e6a213628a13114311e3e6a327a7f8ca2dc7 (patch)
tree2cc2ddc46af449498ee4e36fa0aa521a99f9e750 /Userland/Libraries/LibCpp/SyntaxHighlighter.cpp
parentcb87d13dd54320ec332e7266bdccb356014d23be (diff)
downloadserenity-59b7e6a213628a13114311e3e6a327a7f8ca2dc7.zip
Libraries: Use default constructors/destructors in LibCpp
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."
Diffstat (limited to 'Userland/Libraries/LibCpp/SyntaxHighlighter.cpp')
-rw-r--r--Userland/Libraries/LibCpp/SyntaxHighlighter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp
index de519c5408..8345c6c0f3 100644
--- a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, the SerenityOS developers.
+ * Copyright (c) 2020-2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -98,8 +98,4 @@ bool SyntaxHighlighter::token_types_equal(u64 token1, u64 token2) const
return static_cast<Cpp::Token::Type>(token1) == static_cast<Cpp::Token::Type>(token2);
}
-SyntaxHighlighter::~SyntaxHighlighter()
-{
-}
-
}