diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 16:50:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 19:52:38 +0200 |
commit | 5fa9076a2926b2a54f001f78eea5ce0183466b61 (patch) | |
tree | 285244609ea149f2de11ed773ea2041543aaa4ec /xmloff/source | |
parent | 014dec7fea06189d79c635e8df35e1f48edf7ef5 (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/source')
-rw-r--r-- | xmloff/source/style/xmlimppr.cxx | 2 |
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 ); |