From 6e7459322d8336bfe52e390ab4a1b2e82e24c05e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 26 Jan 2023 18:58:09 +0000 Subject: 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. --- AK/URL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AK/URL.cpp') diff --git a/AK/URL.cpp b/AK/URL.cpp index e52b420964..bf0acc0dfe 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -348,7 +348,7 @@ DeprecatedString URL::serialize_origin() const builder.append(m_host); if (m_port.has_value()) builder.appendff(":{}", *m_port); - return builder.build(); + return builder.to_deprecated_string(); } bool URL::equals(URL const& other, ExcludeFragment exclude_fragments) const -- cgit v1.2.3