mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Shell: Use StringView instead of String const& where feasible
This commit is contained in:
committed by
Andreas Kling
parent
1a4aad9b7e
commit
5b64abe76e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user