summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/documentbuilder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index 37d4de501c6d..b48344cf4130 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -106,7 +106,7 @@ namespace DOM
const char* CDocumentBuilder::aImplementationName = "com.sun.star.comp.xml.dom.DocumentBuilder";
const char* CDocumentBuilder::aSupportedServiceNames[] = {
"com.sun.star.xml.dom.DocumentBuilder",
- NULL
+ nullptr
};
OUString CDocumentBuilder::_getImplementationName()
@@ -116,7 +116,7 @@ namespace DOM
Sequence<OUString> CDocumentBuilder::_getSupportedServiceNames()
{
Sequence<OUString> aSequence;
- for (int i=0; aSupportedServiceNames[i]!=NULL; i++) {
+ for (int i=0; aSupportedServiceNames[i]!=nullptr; i++) {
aSequence.realloc(i+1);
aSequence[i]=(OUString::createFromAscii(aSupportedServiceNames[i]));
}
@@ -246,10 +246,10 @@ namespace DOM
CDocumentBuilder *builder = static_cast< CDocumentBuilder* >(ctxt->_private);
Reference< XEntityResolver > resolver = builder->getEntityResolver();
OUString sysid;
- if (systemId != 0)
+ if (systemId != nullptr)
sysid = OUString(reinterpret_cast<char const *>(systemId), strlen(reinterpret_cast<char const *>(systemId)), RTL_TEXTENCODING_UTF8);
OUString pubid;
- if (publicId != 0)
+ if (publicId != nullptr)
pubid = OUString(reinterpret_cast<char const *>(publicId), strlen(reinterpret_cast<char const *>(publicId)), RTL_TEXTENCODING_UTF8);
// resolve the entity
@@ -336,9 +336,9 @@ namespace DOM
c.close = false;
c.freeOnClose = false;
xmlDocPtr const pDoc = xmlCtxtReadIO(pContext.get(),
- xmlIO_read_func, xmlIO_close_func, &c, 0, 0, 0);
+ xmlIO_read_func, xmlIO_close_func, &c, nullptr, nullptr, 0);
- if (pDoc == 0) {
+ if (pDoc == nullptr) {
throwEx(pContext.get());
}
Reference< XDocument > const xRet(
@@ -360,8 +360,8 @@ namespace DOM
// xmlSetExternalEntityLoader(external_entity_loader);
OString oUri = OUStringToOString(sUri, RTL_TEXTENCODING_UTF8);
char *uri = const_cast<char*>(oUri.getStr());
- xmlDocPtr pDoc = xmlCtxtReadFile(pContext.get(), uri, 0, 0);
- if (pDoc == 0) {
+ xmlDocPtr pDoc = xmlCtxtReadFile(pContext.get(), uri, nullptr, 0);
+ if (pDoc == nullptr) {
throwEx(pContext.get());
}
Reference< XDocument > const xRet(