diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 14:33:16 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 14:33:16 +0800 |
commit | 9f419314b646bf57dfc3fcbb509b3be2c974e3fd (patch) | |
tree | 6d40efce7beade635b6480a9b4e7db2f114c2145 /src/ui/ThemeResourceDictionary.cpp | |
parent | 5c5c496b605886b286d1b99e0f9e28ec02117ad5 (diff) | |
download | cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.tar.gz cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.tar.bz2 cru-9f419314b646bf57dfc3fcbb509b3be2c974e3fd.zip |
Remove String on Linux.
Diffstat (limited to 'src/ui/ThemeResourceDictionary.cpp')
-rw-r--r-- | src/ui/ThemeResourceDictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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> 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<ThemeResourceDictionary>(parser.Parse(), false); |