diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-11 00:55:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:27:46 +0100 |
commit | 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch) | |
tree | ca64ba25aa735d25013d76c6d83570496c742014 /Userland/Libraries/LibCpp/Parser.h | |
parent | ad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff) | |
download | serenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip |
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h index 4bdf381a0a..9a0f457fac 100644 --- a/Userland/Libraries/LibCpp/Parser.h +++ b/Userland/Libraries/LibCpp/Parser.h @@ -56,7 +56,7 @@ private: }; Optional<DeclarationType> match_declaration_in_translation_unit(); - Optional<Parser::DeclarationType> match_class_member(const StringView& class_name); + Optional<Parser::DeclarationType> match_class_member(StringView class_name); bool match_function_declaration(); bool match_comment(); @@ -82,8 +82,8 @@ private: bool match_type(); bool match_named_type(); bool match_access_specifier(); - bool match_constructor(const StringView& class_name); - bool match_destructor(const StringView& class_name); + bool match_constructor(StringView class_name); + bool match_destructor(StringView class_name); Optional<NonnullRefPtrVector<Parameter>> parse_parameter_list(ASTNode& parent); Optional<Token> consume_whitespace(); |