diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:59 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:59 +0200 |
commit | a1c91f4695e208d5a8f80dc37b1818169b7829ff (patch) | |
tree | 52f5134376d17c99b6c9e53133a2eb5cf171377c /lib/xml_base.cpp | |
parent | 5.16 (diff) | |
download | FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.gz FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.bz2 FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.zip |
5.17
Diffstat (limited to 'lib/xml_base.cpp')
-rw-r--r-- | lib/xml_base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xml_base.cpp b/lib/xml_base.cpp index f5091cd6..123060f4 100644 --- a/lib/xml_base.cpp +++ b/lib/xml_base.cpp @@ -14,7 +14,7 @@ using namespace zen; //loadXmlDocument vs loadStream: //1. better error reporting //2. quick exit if (potentially large) input file is not an XML -void xmlAccess::loadXmlDocument(const Zstring& filename, XmlDoc& doc) //throw FfsXmlError +XmlDoc xmlAccess::loadXmlDocument(const Zstring& filename) //throw FfsXmlError { std::string stream; try @@ -51,7 +51,7 @@ void xmlAccess::loadXmlDocument(const Zstring& filename, XmlDoc& doc) //throw Ff try { - zen::parse(stream, doc); //throw XmlParsingError + return zen::parse(stream); //throw XmlParsingError } catch (const XmlParsingError& e) { |