diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-18 21:41:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:53 +0100 |
commit | 3d1ea110264d0fdb79c302b0fa96e301fb67c578 (patch) | |
tree | b30d792bc0f0fe45bbea347cb147cb05aeac2114 /unoxml/source/dom/documentbuilder.cxx | |
parent | 1f041f92b47ad8c3fbbcd37aead60cf000d4355d (diff) |
Some more loplugin:cstylecast: unoxml
Change-Id: I7467e033c998d9ee4283a146088c3b09d161f3cd
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); |