From e10278402f3965e2c3caaebe752c3758ecddd2a4 Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Fri, 4 Jun 2021 00:01:16 +0200 Subject: [PATCH] LibGUI: Use east const style in {INI,GML}Lexer.{cpp,h} --- Userland/Libraries/LibGUI/GMLLexer.cpp | 2 +- Userland/Libraries/LibGUI/GMLLexer.h | 4 ++-- Userland/Libraries/LibGUI/INILexer.cpp | 2 +- Userland/Libraries/LibGUI/INILexer.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Userland/Libraries/LibGUI/GMLLexer.cpp b/Userland/Libraries/LibGUI/GMLLexer.cpp index cf1cc9d12b..1f97e3ac90 100644 --- a/Userland/Libraries/LibGUI/GMLLexer.cpp +++ b/Userland/Libraries/LibGUI/GMLLexer.cpp @@ -10,7 +10,7 @@ namespace GUI { -GMLLexer::GMLLexer(const StringView& input) +GMLLexer::GMLLexer(StringView const& input) : m_input(input) { } diff --git a/Userland/Libraries/LibGUI/GMLLexer.h b/Userland/Libraries/LibGUI/GMLLexer.h index 95d53c84a7..50214cbc58 100644 --- a/Userland/Libraries/LibGUI/GMLLexer.h +++ b/Userland/Libraries/LibGUI/GMLLexer.h @@ -33,7 +33,7 @@ struct GMLToken { #undef __TOKEN }; - const char* to_string() const + char const* to_string() const { switch (m_type) { #define __TOKEN(x) \ @@ -53,7 +53,7 @@ struct GMLToken { class GMLLexer { public: - GMLLexer(const StringView&); + GMLLexer(StringView const&); Vector lex(); diff --git a/Userland/Libraries/LibGUI/INILexer.cpp b/Userland/Libraries/LibGUI/INILexer.cpp index 57dba5ae6f..e1eb181c10 100644 --- a/Userland/Libraries/LibGUI/INILexer.cpp +++ b/Userland/Libraries/LibGUI/INILexer.cpp @@ -10,7 +10,7 @@ namespace GUI { -IniLexer::IniLexer(const StringView& input) +IniLexer::IniLexer(StringView const& input) : m_input(input) { } diff --git a/Userland/Libraries/LibGUI/INILexer.h b/Userland/Libraries/LibGUI/INILexer.h index 2ebb0e7c78..288884a9fa 100644 --- a/Userland/Libraries/LibGUI/INILexer.h +++ b/Userland/Libraries/LibGUI/INILexer.h @@ -33,7 +33,7 @@ struct IniToken { #undef __TOKEN }; - const char* to_string() const + char const* to_string() const { switch (m_type) { #define __TOKEN(x) \ @@ -52,7 +52,7 @@ struct IniToken { class IniLexer { public: - IniLexer(const StringView&); + IniLexer(StringView const&); Vector lex();