mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference
This commit is contained in:
parent
cf1c159ed5
commit
a50ba0a491
13 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue