mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Libraries: Use default constructors/destructors in LibSyntax
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
7abb782206
commit
7cc6ba16be
2 changed files with 3 additions and 7 deletions
|
@ -37,7 +37,7 @@ class Highlighter {
|
|||
AK_MAKE_NONMOVABLE(Highlighter);
|
||||
|
||||
public:
|
||||
virtual ~Highlighter();
|
||||
virtual ~Highlighter() = default;
|
||||
|
||||
virtual Language language() const = 0;
|
||||
StringView language_string(Language) const;
|
||||
|
@ -64,7 +64,7 @@ public:
|
|||
virtual bool is_cpp_semantic_highlighter() const { return false; }
|
||||
|
||||
protected:
|
||||
Highlighter() { }
|
||||
Highlighter() = default;
|
||||
|
||||
// FIXME: This should be WeakPtr somehow
|
||||
HighlighterClient* m_client { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue