mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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:
@@ -420,7 +420,7 @@ CanvasRenderingContext2D::PreparedText CanvasRenderingContext2D::prepare_text(De
|
||||
for (auto c : text) {
|
||||
builder.append(Infra::is_ascii_whitespace(c) ? ' ' : c);
|
||||
}
|
||||
DeprecatedString replaced_text = builder.build();
|
||||
auto replaced_text = builder.to_deprecated_string();
|
||||
|
||||
// 3. Let font be the current font of target, as given by that object's font attribute.
|
||||
// FIXME: Once we have CanvasTextDrawingStyles, implement font selection.
|
||||
|
||||
Reference in New Issue
Block a user