From 633c77d7cd2dd5cd22018aca17da1490e34d94ec Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 10 Jun 2024 13:40:32 +0800 Subject: test: develop SubProcess test, fix various error. NEED TEST: BufferStream, AutoReadStream, SubProcess. --- src/ui/ThemeResourceDictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/ThemeResourceDictionary.cpp') 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::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(parser.Parse(), false); } -- cgit v1.2.3