summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-13 16:13:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-14 06:43:21 +0100
commit4de9091c6235bdb080cee9c79592c3f0f5ef0fcc (patch)
treec8a20332954c8c8545b8d1f9bd30cd9ef65a4f6b /jvmfwk
parent9050854c35c389466923f0224a36572d36cd471a (diff)
loplugin:flatten loosen condition
the description in the comment was right, but the code was not Change-Id: I7c038e7453f4387d33ec6423c0c55446d6d0df47 Reviewed-on: https://gerrit.libreoffice.org/44680 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/source/elements.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx
index 96ef388933d4..ff083373f553 100644
--- a/jvmfwk/source/elements.cxx
+++ b/jvmfwk/source/elements.cxx
@@ -74,10 +74,7 @@ OString getElement(OString const & docPath,
JFW_E_ERROR,
"[Java framework] Error in function getElement (elements.cxx)");
}
- else
- {
- sValue = reinterpret_cast<sal_Char*>(pathObj->nodesetval->nodeTab[0]->content);
- }
+ sValue = reinterpret_cast<sal_Char*>(pathObj->nodesetval->nodeTab[0]->content);
return sValue;
}