mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 22:25:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a50ba0a491f
@@ -59,7 +59,7 @@ bool GMLSyntaxHighlighter::is_identifier(void* token) const
|
||||
return ini_token == GUI::GMLToken::Type::Identifier;
|
||||
}
|
||||
|
||||
void GMLSyntaxHighlighter::rehighlight(Gfx::Palette palette)
|
||||
void GMLSyntaxHighlighter::rehighlight(const Palette& palette)
|
||||
{
|
||||
auto text = m_client->get_text();
|
||||
GMLLexer lexer(text);
|
||||
|
||||
Reference in New Issue
Block a user