mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
Everywhere: Use '_{short_,}string' literals more
This mostly updates code what was written before but merged after these were added.
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/51c3967516 Pull-request: https://github.com/SerenityOS/serenity/pull/17667 Reviewed-by: https://github.com/alimpfard ✅
@@ -716,7 +716,7 @@ ErrorOr<Lexer::ReductionResult> 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::ReductionResult> 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::ReductionResult> 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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user