diff options
Diffstat (limited to 'unoxml/source/dom/element.cxx')
-rw-r--r-- | unoxml/source/dom/element.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx index ed81e8d2333f..b14890fa29d7 100644 --- a/unoxml/source/dom/element.cxx +++ b/unoxml/source/dom/element.cxx @@ -241,7 +241,7 @@ namespace DOM OString o1 = OUStringToOString(name, RTL_TEXTENCODING_UTF8); std::shared_ptr<xmlChar const> const pValue( xmlGetProp(m_aNodePtr, reinterpret_cast<xmlChar const *>(o1.getStr())), xmlFree); - OUString const ret( (pValue) + OUString const ret( pValue ? OUString(reinterpret_cast<sal_Char const*>(pValue.get()), strlen(reinterpret_cast<char const*>(pValue.get())), RTL_TEXTENCODING_UTF8) |