From 4250b25c6ae361359300ab6ccde27230f8e01039 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Jul 2017 14:49:15 +0200 Subject: teach unnecessaryparen loplugin about identifiers Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- unoxml/source/dom/element.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unoxml') 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 const pValue( xmlGetProp(m_aNodePtr, reinterpret_cast(o1.getStr())), xmlFree); - OUString const ret( (pValue) + OUString const ret( pValue ? OUString(reinterpret_cast(pValue.get()), strlen(reinterpret_cast(pValue.get())), RTL_TEXTENCODING_UTF8) -- cgit