From 41982607d0c9b69efd5789762bbdae6c7301ee8b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:32:22 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I85007c6fdceca1c070ca9b4cb62715a5c92bfe15 --- unoxml/source/dom/documentbuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unoxml/source') 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(oUri.getStr()); xmlDocPtr pDoc = xmlCtxtReadFile(pContext.get(), uri, 0, 0); if (pDoc == 0) { throwEx(pContext.get()); -- cgit