1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 10:25:10 +00:00

LibGUI: Convert INISyntaxHighlighter to east-const

This commit is contained in:
Maciej 2021-12-30 13:44:42 +01:00 committed by Andreas Kling
parent 1f7e363b74
commit cd92b73845
2 changed files with 3 additions and 3 deletions

View file

@ -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);