diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:32:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:40 +0100 |
commit | 41982607d0c9b69efd5789762bbdae6c7301ee8b (patch) | |
tree | 9f6e76e64edee9c518c23f1dc3f1beba6e6a74e6 /unoxml/source | |
parent | 720f0e55a081acd3d4460c423bf186e0f27a79e5 (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.cxx | 2 |
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()); |