mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Userland: Prefer _string
over _short_string
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
parent
a5edc9cdfc
commit
3f35ffb648
198 changed files with 684 additions and 684 deletions
|
@ -23,7 +23,7 @@
|
|||
AK_IGNORE_DIAGNOSTIC("-Wshadow", \
|
||||
auto _error = _value_or_error.release_error();) \
|
||||
if (_error.is_errno() && _error.code() == ENOMEM) \
|
||||
return create<AST::SyntaxError>("OOM"_short_string); \
|
||||
return create<AST::SyntaxError>("OOM"_string); \
|
||||
return create<AST::SyntaxError>(MUST(String::formatted("Error: {}", _error))); \
|
||||
} \
|
||||
_value_or_error.release_value(); \
|
||||
|
@ -38,7 +38,7 @@
|
|||
AK_IGNORE_DIAGNOSTIC("-Wshadow", \
|
||||
auto _error = _value_or_error.release_error();) \
|
||||
if (_error.is_errno() && _error.code() == ENOMEM) \
|
||||
_string_value = "OOM"_short_string; \
|
||||
_string_value = "OOM"_string; \
|
||||
else \
|
||||
_string_value = MUST(String::formatted("Error: {}", _error)); \
|
||||
} \
|
||||
|
@ -1762,7 +1762,7 @@ RefPtr<AST::Node> Parser::parse_history_designator()
|
|||
consume();
|
||||
selector.event.kind = AST::HistorySelector::EventKind::IndexFromEnd;
|
||||
selector.event.index = 0;
|
||||
selector.event.text = "!"_short_string;
|
||||
selector.event.text = "!"_string;
|
||||
break;
|
||||
case '?':
|
||||
consume();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue