diff --git a/Userland/Libraries/LibUnicode/Normalize.cpp b/Userland/Libraries/LibUnicode/Normalize.cpp index 3d9fb6c1aa2..dbba8cb95a9 100644 --- a/Userland/Libraries/LibUnicode/Normalize.cpp +++ b/Userland/Libraries/LibUnicode/Normalize.cpp @@ -302,7 +302,7 @@ static ErrorOr> normalize_implementation(Utf8View string, Normalizat VERIFY_NOT_REACHED(); } -ErrorOr normalize(StringView string, NormalizationForm form) +ErrorOr normalize(StringView string, NormalizationForm form) { auto const code_points = TRY(normalize_implementation(Utf8View { string }, form)); @@ -310,7 +310,7 @@ ErrorOr normalize(StringView string, NormalizationForm form) for (auto code_point : code_points) TRY(builder.try_append_code_point(code_point)); - return builder.to_deprecated_string(); + return builder.to_string(); } } diff --git a/Userland/Libraries/LibUnicode/Normalize.h b/Userland/Libraries/LibUnicode/Normalize.h index c476490fdb1..47134368d46 100644 --- a/Userland/Libraries/LibUnicode/Normalize.h +++ b/Userland/Libraries/LibUnicode/Normalize.h @@ -6,11 +6,11 @@ #pragma once -#include #include #include #include #include +#include #include #include @@ -29,6 +29,6 @@ enum class NormalizationForm { NormalizationForm normalization_form_from_string(StringView form); StringView normalization_form_to_string(NormalizationForm form); -ErrorOr normalize(StringView string, NormalizationForm form); +ErrorOr normalize(StringView string, NormalizationForm form); }