diff options
| author | Sebastien Guiriec <sebastien.guiriec@renault.com> | 2016-04-26 07:26:09 +0200 |
|---|---|---|
| committer | Eric Laurent <elaurent@google.com> | 2019-03-12 17:48:47 -0700 |
| commit | 67f663e08dfcebdfaea69df36ebae6167595a549 (patch) | |
| tree | 66e6f26a6a09209dafcfb350ce0531e0fca154be /upstream/xmlserializer/XmlDocSource.cpp | |
| parent | 9a458296b14bbbf4d3d4760b809c8613d46fdafb (diff) | |
| download | platform_external_parameter-framework-67f663e08dfcebdfaea69df36ebae6167595a549.tar.gz platform_external_parameter-framework-67f663e08dfcebdfaea69df36ebae6167595a549.tar.bz2 platform_external_parameter-framework-67f663e08dfcebdfaea69df36ebae6167595a549.zip | |
[PFW] Integrate PFW core version 3.2.5 release
PFW 3.2.5 release notes:
https://github.com/intel/parameter-framework/releases/tag/v3.2.5
This release contains the following changes:
- CMake Package configuration file generation
- Preliminary and unofficial OSX support in Travis-CI
- Use clang-tidy for automatic code cleanup
- Some more cleanup and fixes
- Speed Travis-CI up by using CCache
Bug: 124767636
Test: build
Change-Id: Ib7ce6824430f3907c0508194e91f71a934bdcda8
Signed-off-by: Sebastien Guiriec <sebastien.guiriec@renault.com>
Diffstat (limited to 'upstream/xmlserializer/XmlDocSource.cpp')
| -rw-r--r-- | upstream/xmlserializer/XmlDocSource.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/upstream/xmlserializer/XmlDocSource.cpp b/upstream/xmlserializer/XmlDocSource.cpp index ed366bf..c4ec5fa 100644 --- a/upstream/xmlserializer/XmlDocSource.cpp +++ b/upstream/xmlserializer/XmlDocSource.cpp @@ -61,7 +61,7 @@ CXmlDocSource::~CXmlDocSource() if (_pDoc) { // Free XML doc xmlFreeDoc(_pDoc); - _pDoc = NULL; + _pDoc = nullptr; } } @@ -110,7 +110,7 @@ _xmlDoc *CXmlDocSource::getDoc() const bool CXmlDocSource::isParsable() const { // Check that the doc has been created - return _pDoc != NULL; + return _pDoc != nullptr; } bool CXmlDocSource::populate(CXmlSerializingContext &serializingContext) @@ -167,7 +167,7 @@ bool CXmlDocSource::isInstanceDocumentValid() #ifdef LIBXML_SCHEMAS_ENABLED string schemaUri = getSchemaUri(); - xmlDocPtr pSchemaDoc = xmlReadFile(schemaUri.c_str(), NULL, XML_PARSE_NONET); + xmlDocPtr pSchemaDoc = xmlReadFile(schemaUri.c_str(), nullptr, XML_PARSE_NONET); if (!pSchemaDoc) { // Unable to load Schema @@ -233,28 +233,28 @@ std::string CXmlDocSource::mkUri(const std::string &base, const std::string &rel _xmlDoc *CXmlDocSource::mkXmlDoc(const string &source, bool fromFile, bool xincludes, CXmlSerializingContext &serializingContext) { - _xmlDoc *doc = NULL; + _xmlDoc *doc = nullptr; if (fromFile) { - doc = xmlReadFile(source.c_str(), NULL, 0); + doc = xmlReadFile(source.c_str(), nullptr, 0); } else { - doc = xmlReadMemory(source.c_str(), (int)source.size(), "", NULL, 0); + doc = xmlReadMemory(source.c_str(), (int)source.size(), "", nullptr, 0); } - if (doc == NULL) { + if (doc == nullptr) { string errorMsg = "libxml failed to read"; if (fromFile) { errorMsg += " \"" + source + "\""; } serializingContext.appendLineToError(errorMsg); - return NULL; + return nullptr; } if (xincludes and (xmlXIncludeProcess(doc) < 0)) { serializingContext.appendLineToError("libxml failed to resolve XIncludes"); xmlFreeDoc(doc); - doc = NULL; + doc = nullptr; } return doc; |
