From c1f491712ab071030ed8ca9587c896ca2856ab97 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 5 Oct 2023 21:01:39 +0800 Subject: ... --- src/ui/ThemeResourceDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') 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::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(parser.Parse(), false); -- cgit v1.2.3