Kaydet (Commit) 5fa9076a authored tarafından Caolán McNamara's avatar Caolán McNamara

pvs-studio: An excessive check can be simplified

Change-Id: Idaa511d4ccf3d8542bdf6a1dcee4fa54c6d2315f
Reviewed-on: https://gerrit.libreoffice.org/62059
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 014dec7f
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment