summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp2
-rw-r--r--Userland/Applications/Spreadsheet/CellSyntaxHighlighter.h2
-rw-r--r--Userland/Libraries/LibCpp/SyntaxHighlighter.cpp2
-rw-r--r--Userland/Libraries/LibCpp/SyntaxHighlighter.h2
-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
-rw-r--r--Userland/Libraries/LibJS/SyntaxHighlighter.cpp2
-rw-r--r--Userland/Libraries/LibJS/SyntaxHighlighter.h2
-rw-r--r--Userland/Libraries/LibSyntax/Highlighter.h2
-rw-r--r--Userland/Shell/SyntaxHighlighter.cpp2
-rw-r--r--Userland/Shell/SyntaxHighlighter.h2
13 files changed, 13 insertions, 13 deletions
diff --git a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp
index 543c03b064..2d800a1876 100644
--- a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp
+++ b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.cpp
@@ -31,7 +31,7 @@
namespace Spreadsheet {
-void CellSyntaxHighlighter::rehighlight(Gfx::Palette palette)
+void CellSyntaxHighlighter::rehighlight(const Palette& palette)
{
auto text = m_client->get_text();
m_client->spans().clear();
diff --git a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.h b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.h
index bdea58e647..a8d0c994a0 100644
--- a/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.h
+++ b/Userland/Applications/Spreadsheet/CellSyntaxHighlighter.h
@@ -36,7 +36,7 @@ public:
CellSyntaxHighlighter() { }
virtual ~CellSyntaxHighlighter() override;
- virtual void rehighlight(Gfx::Palette) override;
+ virtual void rehighlight(const Palette&) override;
void set_cell(const Cell* cell) { m_cell = cell; }
private:
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;
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;
diff --git a/Userland/Libraries/LibJS/SyntaxHighlighter.cpp b/Userland/Libraries/LibJS/SyntaxHighlighter.cpp
index 757a334994..3bbbfd8f29 100644
--- a/Userland/Libraries/LibJS/SyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibJS/SyntaxHighlighter.cpp
@@ -69,7 +69,7 @@ bool SyntaxHighlighter::is_navigatable([[maybe_unused]] void* token) const
return false;
}
-void SyntaxHighlighter::rehighlight(Gfx::Palette palette)
+void SyntaxHighlighter::rehighlight(const Palette& palette)
{
auto text = m_client->get_text();
diff --git a/Userland/Libraries/LibJS/SyntaxHighlighter.h b/Userland/Libraries/LibJS/SyntaxHighlighter.h
index 1c5bb10c80..76b43d0ef7 100644
--- a/Userland/Libraries/LibJS/SyntaxHighlighter.h
+++ b/Userland/Libraries/LibJS/SyntaxHighlighter.h
@@ -39,7 +39,7 @@ public:
virtual bool is_navigatable(void*) const override;
virtual Syntax::Language language() const override { return Syntax::Language::JavaScript; }
- 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/LibSyntax/Highlighter.h b/Userland/Libraries/LibSyntax/Highlighter.h
index 4f56fc05d5..deb46e1aa2 100644
--- a/Userland/Libraries/LibSyntax/Highlighter.h
+++ b/Userland/Libraries/LibSyntax/Highlighter.h
@@ -56,7 +56,7 @@ public:
virtual ~Highlighter();
virtual Language language() const = 0;
- virtual void rehighlight(Gfx::Palette) = 0;
+ virtual void rehighlight(const Palette&) = 0;
virtual void highlight_matching_token_pair();
virtual bool is_identifier(void*) const { return false; };
diff --git a/Userland/Shell/SyntaxHighlighter.cpp b/Userland/Shell/SyntaxHighlighter.cpp
index 393ebb3f86..d202055716 100644
--- a/Userland/Shell/SyntaxHighlighter.cpp
+++ b/Userland/Shell/SyntaxHighlighter.cpp
@@ -498,7 +498,7 @@ bool SyntaxHighlighter::is_navigatable(void* token) const
return (size_t)kind == (size_t)AST::Node::Kind::BarewordLiteral;
}
-void SyntaxHighlighter::rehighlight(Gfx::Palette palette)
+void SyntaxHighlighter::rehighlight(const Palette& palette)
{
auto text = m_client->get_text();
diff --git a/Userland/Shell/SyntaxHighlighter.h b/Userland/Shell/SyntaxHighlighter.h
index d870bd2732..27341958f7 100644
--- a/Userland/Shell/SyntaxHighlighter.h
+++ b/Userland/Shell/SyntaxHighlighter.h
@@ -39,7 +39,7 @@ public:
virtual bool is_navigatable(void*) const override;
virtual Syntax::Language language() const override { return Syntax::Language::Shell; }
- virtual void rehighlight(Gfx::Palette) override;
+ virtual void rehighlight(const Palette&) override;
protected:
virtual Vector<MatchingTokenPair> matching_token_pairs() const override;