summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/GMLSyntaxHighlighter.cpp2
-rw-r--r--Userland/Libraries/LibGUI/GMLSyntaxHighlighter.h2
-rw-r--r--Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp2
-rw-r--r--Userland/Libraries/LibGUI/INISyntaxHighlighter.h2
4 files changed, 4 insertions, 4 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);
diff --git a/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.h b/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.h
index 4891cce703..97c9e28082 100644
--- a/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.h
+++ b/Userland/Libraries/LibGUI/GMLSyntaxHighlighter.h
@@ -38,7 +38,7 @@ public:
virtual bool is_identifier(void*) const override;
virtual Syntax::Language language() const override { return Syntax::Language::GML; }
- virtual void rehighlight(Gfx::Palette) override;
+ virtual void rehighlight(const Palette&) override;
protected:
virtual Vector<MatchingTokenPair> matching_token_pairs() const override;
diff --git a/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp b/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
index 49576dc037..115f79349e 100644
--- a/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
@@ -58,7 +58,7 @@ bool IniSyntaxHighlighter::is_identifier(void* token) const
return ini_token == GUI::IniToken::Type::Name;
}
-void IniSyntaxHighlighter::rehighlight(Gfx::Palette palette)
+void IniSyntaxHighlighter::rehighlight(const Palette& palette)
{
auto text = m_client->get_text();
IniLexer lexer(text);
diff --git a/Userland/Libraries/LibGUI/INISyntaxHighlighter.h b/Userland/Libraries/LibGUI/INISyntaxHighlighter.h
index e6285c6f54..516b5950be 100644
--- a/Userland/Libraries/LibGUI/INISyntaxHighlighter.h
+++ b/Userland/Libraries/LibGUI/INISyntaxHighlighter.h
@@ -38,7 +38,7 @@ public:
virtual bool is_identifier(void*) const override;
virtual Syntax::Language language() const override { return Syntax::Language::INI; }
- virtual void rehighlight(Gfx::Palette) override;
+ virtual void rehighlight(const Palette&) override;
protected:
virtual Vector<MatchingTokenPair> matching_token_pairs() const override;