From 9f419314b646bf57dfc3fcbb509b3be2c974e3fd Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 14:33:16 +0800 Subject: Remove String on Linux. --- src/ui/ThemeResourceDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/ThemeResourceDictionary.cpp') diff --git a/src/ui/ThemeResourceDictionary.cpp b/src/ui/ThemeResourceDictionary.cpp index f76bdde8..587a14c5 100644 --- a/src/ui/ThemeResourceDictionary.cpp +++ b/src/ui/ThemeResourceDictionary.cpp @@ -8,8 +8,8 @@ namespace cru::ui { std::unique_ptr ThemeResourceDictionary::FromFile( - const String& file_path) { - io::CFileStream stream(file_path.ToUtf8().c_str(), "r"); + std::filesystem::path file_path) { + io::CFileStream stream(file_path.c_str(), "r"); auto xml_string = stream.ReadToEndAsUtf8String(); auto parser = xml::XmlParser(xml_string); return std::make_unique(parser.Parse(), false); -- cgit v1.2.3