aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ThemeResourceDictionary.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-05 21:01:39 +0800
committercrupest <crupest@outlook.com>2023-10-05 21:01:39 +0800
commitc1f491712ab071030ed8ca9587c896ca2856ab97 (patch)
treed2eef18f377a2b2ad93c6fbf56989de11789e77e /src/ui/ThemeResourceDictionary.cpp
parent6cd1d68baf219b5d3c742ba5fb3a9ee04e830999 (diff)
downloadcru-c1f491712ab071030ed8ca9587c896ca2856ab97.tar.gz
cru-c1f491712ab071030ed8ca9587c896ca2856ab97.tar.bz2
cru-c1f491712ab071030ed8ca9587c896ca2856ab97.zip
...
Diffstat (limited to 'src/ui/ThemeResourceDictionary.cpp')
-rw-r--r--src/ui/ThemeResourceDictionary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/ThemeResourceDictionary.cpp b/src/ui/ThemeResourceDictionary.cpp
index 6720626e..f91fcb1c 100644
--- a/src/ui/ThemeResourceDictionary.cpp
+++ b/src/ui/ThemeResourceDictionary.cpp
@@ -1,5 +1,5 @@
#include "cru/ui/ThemeResourceDictionary.h"
-#include "cru/common/io/FileStream.h"
+#include "cru/common/io/CFileStream.h"
#include "cru/common/log/Logger.h"
#include "cru/xml/XmlNode.h"
#include "cru/xml/XmlParser.h"
@@ -8,7 +8,7 @@ namespace cru::ui {
std::unique_ptr<ThemeResourceDictionary> ThemeResourceDictionary::FromFile(
const String& file_path) {
- io::FileStream stream(file_path, io::OpenFileFlags::Read);
+ io::CFileStream stream(file_path.ToUtf8().c_str(), "r");
auto xml_string = stream.ReadAllAsString();
auto parser = xml::XmlParser(xml_string);
return std::make_unique<ThemeResourceDictionary>(parser.Parse(), false);