summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2017-08-08 13:26:24 -0500
committerElliott Hughes2017-08-08 13:32:10 -0500
commita4c0a2e87c9427c8a92710156475d8d4a255ac8e (patch)
treed5a99bbd727358dadaaf4b803c29192314e18d0b /parse_xml.cpp
parent325f88def9658346c3d3e54caff4fd9daf26b505 (diff)
downloadplatform-system-libvintf-a4c0a2e87c9427c8a92710156475d8d4a255ac8e.tar.gz
platform-system-libvintf-a4c0a2e87c9427c8a92710156475d8d4a255ac8e.tar.xz
platform-system-libvintf-a4c0a2e87c9427c8a92710156475d8d4a255ac8e.zip
Track tinyxml2 API change.android-o-iot-preview-5
Bug: http://b/64459264 Test: builds Change-Id: Ica24adee8874b28b793570e2cdf8f2b24d073287
Diffstat (limited to 'parse_xml.cpp')
-rw-r--r--parse_xml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_xml.cpp b/parse_xml.cpp
index 518faec..f773078 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -43,7 +43,7 @@ inline DocType *createDocument() {
43// caller is responsible for deleteDocument() call 43// caller is responsible for deleteDocument() call
44inline DocType *createDocument(const std::string &xml) { 44inline DocType *createDocument(const std::string &xml) {
45 DocType *doc = new tinyxml2::XMLDocument(); 45 DocType *doc = new tinyxml2::XMLDocument();
46 if (doc->Parse(xml.c_str()) == tinyxml2::XML_NO_ERROR) { 46 if (doc->Parse(xml.c_str()) == tinyxml2::XML_SUCCESS) {
47 return doc; 47 return doc;
48 } 48 }
49 delete doc; 49 delete doc;