summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2021-12-30 13:44:42 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-30 14:12:39 +0100
commitcd92b73845654606da9571e2912c17bc79dec18c (patch)
tree4cbe57d815e0b94c2da6bd1f3e783a3deb93e1ec
parent1f7e363b740e33c06bdc1cddebdf5e7873ca386c (diff)
downloadserenity-cd92b73845654606da9571e2912c17bc79dec18c.zip
LibGUI: Convert INISyntaxHighlighter to east-const
-rw-r--r--Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp4
-rw-r--r--Userland/Libraries/LibGUI/INISyntaxHighlighter.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp b/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
index f206a92aa2..71941d4557 100644
--- a/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp
@@ -10,7 +10,7 @@
namespace GUI {
-static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, IniToken::Type type)
+static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, IniToken::Type type)
{
switch (type) {
case IniToken::Type::LeftBracket:
@@ -36,7 +36,7 @@ bool IniSyntaxHighlighter::is_identifier(u64 token) const
return ini_token == GUI::IniToken::Type::Name;
}
-void IniSyntaxHighlighter::rehighlight(const Palette& palette)
+void IniSyntaxHighlighter::rehighlight(Palette const& 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 2639c54247..5e23da25e8 100644
--- a/Userland/Libraries/LibGUI/INISyntaxHighlighter.h
+++ b/Userland/Libraries/LibGUI/INISyntaxHighlighter.h
@@ -18,7 +18,7 @@ public:
virtual bool is_identifier(u64) const override;
virtual Syntax::Language language() const override { return Syntax::Language::INI; }
- virtual void rehighlight(const Palette&) override;
+ virtual void rehighlight(Palette const&) override;
protected:
virtual Vector<MatchingTokenPair> matching_token_pairs_impl() const override;