1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibRegex: Remove some meaningless/useless const-qualifiers

Also replace String creation from `""` with `String::empty()`
This commit is contained in:
Hendiadyoin1 2021-12-21 18:06:24 +01:00 committed by Brian Gianforcaro
parent ca69ded9a5
commit 5885e70df7
4 changed files with 30 additions and 30 deletions

View file

@ -56,7 +56,7 @@ public:
size_t position() const { return m_position; }
char const* name() const;
static char const* name(TokenType const);
static char const* name(TokenType);
private:
TokenType m_type { TokenType::Eof };
@ -67,7 +67,7 @@ private:
class Lexer : public GenericLexer {
public:
Lexer();
explicit Lexer(StringView const source);
explicit Lexer(StringView source);
Token next();
void reset();
void back(size_t offset);