aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ThemeResourceDictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ThemeResourceDictionary.cpp')
-rw-r--r--src/ui/ThemeResourceDictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ThemeResourceDictionary.cpp b/src/ui/ThemeResourceDictionary.cpp
index 587a14c5..b9c7c284 100644
--- a/src/ui/ThemeResourceDictionary.cpp
+++ b/src/ui/ThemeResourceDictionary.cpp
@@ -9,7 +9,7 @@ namespace cru::ui {
std::unique_ptr<ThemeResourceDictionary> ThemeResourceDictionary::FromFile(
std::filesystem::path file_path) {
- io::CFileStream stream(file_path.c_str(), "r");
+ io::CFileStream stream(file_path.generic_string().c_str(), "r");
auto xml_string = stream.ReadToEndAsUtf8String();
auto parser = xml::XmlParser(xml_string);
return std::make_unique<ThemeResourceDictionary>(parser.Parse(), false);