summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-11 23:52:39 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-11 23:52:39 +0100
commita50ba0a491f23493fe24a365a4e865ee47f84f4b (patch)
treea78ca4c93f831c1eda2d8018eb53aaf82706e5de /Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp
parentcf1c159ed541222aeeb03d249f1e64ef0650b2df (diff)
downloadserenity-a50ba0a491f23493fe24a365a4e865ee47f84f4b.zip
LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference
Diffstat (limited to 'Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp')
-rw-r--r--Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp b/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp
index 593355edd9..1e6869fbe9 100644
--- a/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp
@@ -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);