summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/attr.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index 22f214dbf384..4ff411d3f62c 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -156,11 +156,8 @@ namespace DOM
if (nullptr == m_aAttrPtr->children) {
return OUString();
}
- char const*const pContent((m_aAttrPtr->children)
- ? reinterpret_cast<char const*>(m_aAttrPtr->children->content)
- : "");
- OUString const ret(pContent, strlen(pContent), RTL_TEXTENCODING_UTF8);
- return ret;
+ char const*const pContent(reinterpret_cast<char const*>(m_aAttrPtr->children->content));
+ return OUString(pContent, strlen(pContent), RTL_TEXTENCODING_UTF8);
}
/**