mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
Shell: Use StringView instead of String const& where feasible
This commit is contained in:
parent
1a4aad9b7e
commit
5b64abe76e
4 changed files with 68 additions and 78 deletions
|
@ -106,7 +106,7 @@ ErrorOr<void> AK::Formatter<Shell::AST::Command>::format(FormatBuilder& builder,
|
|||
|
||||
namespace Shell::AST {
|
||||
|
||||
static inline void print_indented(const String& str, int indent)
|
||||
static inline void print_indented(StringView str, int indent)
|
||||
{
|
||||
dbgln("{}{}", String::repeated(' ', indent * 2), str);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue