From 51c3967516cdce42d40c26debaec7f6ef949420b Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 28 Feb 2023 13:50:29 +0000 Subject: Everywhere: Use '_{short_,}string' literals more This mostly updates code what was written before but merged after these were added. --- Userland/Shell/PosixLexer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Shell/PosixLexer.cpp') diff --git a/Userland/Shell/PosixLexer.cpp b/Userland/Shell/PosixLexer.cpp index 60e18010db..1a0e82f35e 100644 --- a/Userland/Shell/PosixLexer.cpp +++ b/Userland/Shell/PosixLexer.cpp @@ -716,7 +716,7 @@ ErrorOr Lexer::reduce_arithmetic_expansion() expansion.range.length = m_state.position.end_offset - expansion.range.start - m_state.position.start_offset; return ReductionResult { - .tokens = { Token::continuation(String::from_utf8_short_string("$(("sv)) }, + .tokens = { Token::continuation("$(("_short_string) }, .next_reduction = m_state.previous_reduction, }; } @@ -791,7 +791,7 @@ ErrorOr Lexer::reduce_command_or_arithmetic_substitution { if (m_lexer.is_eof()) { return ReductionResult { - .tokens = { Token::continuation(String::from_utf8_short_string("$("sv)) }, + .tokens = { Token::continuation("$("_short_string) }, .next_reduction = m_state.previous_reduction, }; } @@ -835,7 +835,7 @@ ErrorOr Lexer::reduce_extended_parameter_expansion() if (m_lexer.is_eof()) { return ReductionResult { - .tokens = { Token::continuation(String::from_utf8_short_string("${"sv)) }, + .tokens = { Token::continuation("${"_short_string) }, .next_reduction = m_state.previous_reduction, }; } -- cgit v1.2.3