From d1ed04a6cb22e29629f9132630b0790a6e1cac18 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Mon, 27 Nov 2023 22:01:45 +1300 Subject: [PATCH] FontEditor: Use String.to_uppercase Remove the last user of Unicode::to_unicode_uppercase_full --- Userland/Applications/FontEditor/MainWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/FontEditor/MainWidget.cpp b/Userland/Applications/FontEditor/MainWidget.cpp index 6887638f3f..4f7cf3cf5e 100644 --- a/Userland/Applications/FontEditor/MainWidget.cpp +++ b/Userland/Applications/FontEditor/MainWidget.cpp @@ -90,8 +90,9 @@ ErrorOr> MainWidget::create_preview_window() m_preview_textbox = find_descendant_of_type_named("preview_textbox"); m_preview_textbox->on_change = [this] { - auto maybe_preview = [](StringView text) -> ErrorOr { - return TRY(String::formatted("{}\n{}", text, TRY(Unicode::to_unicode_uppercase_full(text)))); + auto maybe_preview = [](DeprecatedString const& deprecated_text) -> ErrorOr { + auto text = TRY(String::from_deprecated_string(deprecated_text)); + return TRY(String::formatted("{}\n{}", text, TRY(text.to_uppercase()))); }(m_preview_textbox->text()); if (maybe_preview.is_error()) return show_error(maybe_preview.release_error(), "Formatting preview text failed"sv);