diff options
Diffstat (limited to 'unoxml/source/dom/attributesmap.cxx')
-rw-r--r-- | unoxml/source/dom/attributesmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx index 36135ad8c378..edac05438ef6 100644 --- a/unoxml/source/dom/attributesmap.cxx +++ b/unoxml/source/dom/attributesmap.cxx @@ -70,11 +70,11 @@ namespace DOM if (pNode != NULL) { OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); - xmlChar* xName = (xmlChar*)o1.getStr(); + xmlChar const * xName = reinterpret_cast<xmlChar const *>(o1.getStr()); xmlAttrPtr cur = pNode->properties; while (cur != NULL) { - if( strcmp((char*)xName, (char*)cur->name) == 0) + if( strcmp(reinterpret_cast<char const *>(xName), reinterpret_cast<char const *>(cur->name)) == 0) { aNode = Reference< XNode >( m_pElement->GetOwnerDocument().GetCNode( @@ -102,7 +102,7 @@ namespace DOM if (pNode != NULL) { OString o1 = OUStringToOString(localName, RTL_TEXTENCODING_UTF8); - xmlChar* xName = (xmlChar*)o1.getStr(); + xmlChar const * xName = reinterpret_cast<xmlChar const *>(o1.getStr()); OString o2 = OUStringToOString(namespaceURI, RTL_TEXTENCODING_UTF8); xmlChar const*const xNs = reinterpret_cast<xmlChar const*>(o2.getStr()); @@ -110,7 +110,7 @@ namespace DOM xmlAttrPtr cur = pNode->properties; while (cur != NULL && pNs != NULL) { - if( strcmp((char*)xName, (char*)cur->name) == 0 && + if( strcmp(reinterpret_cast<char const *>(xName), reinterpret_cast<char const *>(cur->name)) == 0 && cur->ns == pNs) { aNode = Reference< XNode >( |