diff options
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index f7db8da8f51e..e52f6282abd1 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -166,7 +166,7 @@ namespace DOM ::osl::MutexGuard const g(m_Mutex); // create a new document - xmlDocPtr pDocument = xmlNewDoc((const xmlChar*)"1.0"); + xmlDocPtr pDocument = xmlNewDoc(reinterpret_cast<const xmlChar*>("1.0")); Reference< XDocument > const xRet( CDocument::CreateCDocument(pDocument).get()); return xRet; @@ -247,10 +247,10 @@ namespace DOM Reference< XEntityResolver > resolver = builder->getEntityResolver(); OUString sysid; if (systemId != 0) - sysid = OUString((sal_Char*)systemId, strlen((char*)systemId), RTL_TEXTENCODING_UTF8); + sysid = OUString(reinterpret_cast<char const *>(systemId), strlen(reinterpret_cast<char const *>(systemId)), RTL_TEXTENCODING_UTF8); OUString pubid; if (publicId != 0) - pubid = OUString((sal_Char*)publicId, strlen((char*)publicId), RTL_TEXTENCODING_UTF8); + pubid = OUString(reinterpret_cast<char const *>(publicId), strlen(reinterpret_cast<char const *>(publicId)), RTL_TEXTENCODING_UTF8); // resolve the entity InputSource src = resolver->resolveEntity(pubid, sysid); |