diff options
Diffstat (limited to 'src/ui/ThemeResourceDictionary.cpp')
-rw-r--r-- | src/ui/ThemeResourceDictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ThemeResourceDictionary.cpp b/src/ui/ThemeResourceDictionary.cpp index f91fcb1c..86a19083 100644 --- a/src/ui/ThemeResourceDictionary.cpp +++ b/src/ui/ThemeResourceDictionary.cpp @@ -9,7 +9,7 @@ namespace cru::ui { std::unique_ptr<ThemeResourceDictionary> ThemeResourceDictionary::FromFile( const String& file_path) { io::CFileStream stream(file_path.ToUtf8().c_str(), "r"); - auto xml_string = stream.ReadAllAsString(); + auto xml_string = stream.ReadToEndAsUtf8String(); auto parser = xml::XmlParser(xml_string); return std::make_unique<ThemeResourceDictionary>(parser.Parse(), false); } |