summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/attr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/attr.cxx')
-rw-r--r--unoxml/source/dom/attr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index c3fdfac00ecc..ba0eef522b25 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -105,8 +105,8 @@ namespace DOM
if ((0 == m_aNodePtr) || (0 == m_aAttrPtr)) {
return OUString();
}
- OUString const aName((char*)m_aAttrPtr->name,
- strlen((char*)m_aAttrPtr->name), RTL_TEXTENCODING_UTF8);
+ OUString const aName(reinterpret_cast<char const *>(m_aAttrPtr->name),
+ strlen(reinterpret_cast<char const *>(m_aAttrPtr->name)), RTL_TEXTENCODING_UTF8);
return aName;
}
@@ -181,7 +181,7 @@ namespace DOM
OUString sOldValue = getValue();
OString o1 = OUStringToOString(value, RTL_TEXTENCODING_UTF8);
- xmlChar* xValue = (xmlChar*)o1.getStr();
+ xmlChar const * xValue = reinterpret_cast<xmlChar const *>(o1.getStr());
// this does not work if the attribute was created anew
// xmlNodePtr pNode = m_aAttrPtr->parent;
// xmlSetProp(pNode, m_aAttrPtr->name, xValue);