summaryrefslogtreecommitdiff
path: root/unoxml/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:32:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:40 +0100
commit41982607d0c9b69efd5789762bbdae6c7301ee8b (patch)
tree9f6e76e64edee9c518c23f1dc3f1beba6e6a74e6 /unoxml/source
parent720f0e55a081acd3d4460c423bf186e0f27a79e5 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I85007c6fdceca1c070ca9b4cb62715a5c92bfe15
Diffstat (limited to 'unoxml/source')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index e52f6282abd1..e5d3dcb39dd6 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -359,7 +359,7 @@ namespace DOM
pContext->sax->resolveEntity = resolve_func;
// xmlSetExternalEntityLoader(external_entity_loader);
OString oUri = OUStringToOString(sUri, RTL_TEXTENCODING_UTF8);
- char *uri = (char*) oUri.getStr();
+ char *uri = const_cast<char*>(oUri.getStr());
xmlDocPtr pDoc = xmlCtxtReadFile(pContext.get(), uri, 0, 0);
if (pDoc == 0) {
throwEx(pContext.get());