summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCpp/Lexer.cpp')
-rw-r--r--Userland/Libraries/LibCpp/Lexer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCpp/Lexer.cpp b/Userland/Libraries/LibCpp/Lexer.cpp
index 85c61b8c6c..247ce2f667 100644
--- a/Userland/Libraries/LibCpp/Lexer.cpp
+++ b/Userland/Libraries/LibCpp/Lexer.cpp
@@ -13,7 +13,7 @@
namespace Cpp {
-Lexer::Lexer(StringView const& input, size_t start_line)
+Lexer::Lexer(StringView input, size_t start_line)
: m_input(input)
, m_previous_position { start_line, 0 }
, m_position { start_line, 0 }
@@ -188,7 +188,7 @@ constexpr char const* s_known_types[] = {
"wchar_t"
};
-static bool is_keyword(StringView const& string)
+static bool is_keyword(StringView string)
{
static HashTable<String> keywords(array_size(s_known_keywords));
if (keywords.is_empty()) {
@@ -197,7 +197,7 @@ static bool is_keyword(StringView const& string)
return keywords.contains(string);
}
-static bool is_known_type(StringView const& string)
+static bool is_known_type(StringView string)
{
static HashTable<String> types(array_size(s_known_types));
if (types.is_empty()) {