mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
AK: Remove StringBuilder::build() in favor of to_deprecated_string()
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
This commit is contained in:
parent
da81041e97
commit
6e7459322d
129 changed files with 213 additions and 219 deletions
|
@ -34,7 +34,7 @@ static DeprecatedString build_header_string(Vector<char const*> const& command,
|
|||
builder.appendff("Every {}.{}s: \x1b[1m", interval.tv_sec, interval.tv_usec / 100000);
|
||||
builder.join(' ', command);
|
||||
builder.append("\x1b[0m"sv);
|
||||
return builder.build();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
static DeprecatedString build_header_string(Vector<char const*> const& command, Vector<DeprecatedString> const& filenames)
|
||||
|
@ -43,7 +43,7 @@ static DeprecatedString build_header_string(Vector<char const*> const& command,
|
|||
builder.appendff("Every time any of {} changes: \x1b[1m", filenames);
|
||||
builder.join(' ', command);
|
||||
builder.append("\x1b[0m"sv);
|
||||
return builder.build();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
static struct timeval get_current_time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue