diff options
Diffstat (limited to 'Userland/Libraries/LibCpp')
-rw-r--r-- | Userland/Libraries/LibCpp/SyntaxHighlighter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibCpp/SyntaxHighlighter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp index f1dc044bfe..762257678c 100644 --- a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp +++ b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp @@ -75,7 +75,7 @@ bool SyntaxHighlighter::is_navigatable(void* token) const return cpp_token == Cpp::Token::Type::IncludePath; } -void SyntaxHighlighter::rehighlight(Gfx::Palette palette) +void SyntaxHighlighter::rehighlight(const Palette& palette) { auto text = m_client->get_text(); Cpp::Lexer lexer(text); diff --git a/Userland/Libraries/LibCpp/SyntaxHighlighter.h b/Userland/Libraries/LibCpp/SyntaxHighlighter.h index c55ab56b5d..a85c44889e 100644 --- a/Userland/Libraries/LibCpp/SyntaxHighlighter.h +++ b/Userland/Libraries/LibCpp/SyntaxHighlighter.h @@ -39,7 +39,7 @@ public: virtual bool is_navigatable(void*) const override; virtual Syntax::Language language() const override { return Syntax::Language::Cpp; } - virtual void rehighlight(Gfx::Palette) override; + virtual void rehighlight(const Palette&) override; protected: virtual Vector<MatchingTokenPair> matching_token_pairs() const override; |