coverity#1397045 Unchecked return value
and coverity#1397044 Unchecked return value Change-Id: I193bd676e417c35450efa91cb5773c78c998b63f
This commit is contained in:
parent
c5ba9161a8
commit
510f497f05
@ -99,7 +99,7 @@ uno::Any SvxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry*
|
||||
|
||||
const SfxPoolItem* pItem = nullptr;
|
||||
SfxItemPool* pPool = rSet.GetPool();
|
||||
rSet.GetItemState( pMap->nWID, bSearchInParent, &pItem );
|
||||
(void)rSet.GetItemState( pMap->nWID, bSearchInParent, &pItem );
|
||||
if( nullptr == pItem && pPool )
|
||||
pItem = &(pPool->GetDefaultItem( pMap->nWID ));
|
||||
|
||||
|
@ -1283,7 +1283,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet )
|
||||
while( 0 != ( nWhich = aIter.NextWhich() ) )
|
||||
{
|
||||
const SfxPoolItem* pItem = nullptr;
|
||||
rSet.GetItemState( nWhich, true, &pItem );
|
||||
(void)rSet.GetItemState( nWhich, true, &pItem );
|
||||
if( !pItem )
|
||||
{
|
||||
// Not set, so default
|
||||
|
Loading…
x
Reference in New Issue
Block a user