summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-19 16:50:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-20 19:52:38 +0200
commit5fa9076a2926b2a54f001f78eea5ce0183466b61 (patch)
tree285244609ea149f2de11ed773ea2041543aaa4ec /xmloff
parent014dec7fea06189d79c635e8df35e1f48edf7ef5 (diff)
pvs-studio: An excessive check can be simplified
Change-Id: Idaa511d4ccf3d8542bdf6a1dcee4fa54c6d2315f Reviewed-on: https://gerrit.libreoffice.org/62059 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlimppr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlimppr.cxx b/xmloff/source/style/xmlimppr.cxx
index 8ebaa88d3fde..f14e64628618 100644
--- a/xmloff/source/style/xmlimppr.cxx
+++ b/xmloff/source/style/xmlimppr.cxx
@@ -585,7 +585,7 @@ void SvXMLImportPropertyMapper::PrepareForMultiPropertySet_(
if ( ( 0 == ( nPropFlags & MID_FLAG_NO_PROPERTY ) ) &&
( ( 0 != ( nPropFlags & MID_FLAG_MUST_EXIST ) ) ||
!rPropSetInfo.is() ||
- (rPropSetInfo.is() && rPropSetInfo->hasPropertyByName( rPropName )) ) )
+ rPropSetInfo->hasPropertyByName(rPropName) ) )
{
// save property into property pair structure
aPropertyPairs.emplace_back( &rPropName, &rProp.maValue );