mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
Shell: Use StringView instead of String const& where feasible
This commit is contained in:
parent
1a4aad9b7e
commit
5b64abe76e
Notes:
sideshowbarker
2024-07-17 20:00:46 +09:00
Author: https://github.com/BertalanD
Commit: 5b64abe76e
Pull-request: https://github.com/SerenityOS/serenity/pull/12201
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