From 6b503a726dba78c532074ee4cf304bf46d23e31e Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 25 Mar 2023 23:23:52 -0600 Subject: [PATCH] Use `sf::String::toUtf8()` --- src/SFML/Window/Unix/WindowImplX11.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index b944003f..b3852cc9 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -928,8 +928,7 @@ void WindowImplX11::setTitle(const String& title) // There is however an option to tell the window manager your Unicode title via hints. // Convert to UTF-8 encoding. - std::basic_string utf8Title; - Utf32::toUtf8(title.begin(), title.end(), std::back_inserter(utf8Title)); + const std::basic_string utf8Title = title.toUtf8(); const Atom useUtf8 = getAtom("UTF8_STRING", false);