coverity#1397045 Unchecked return value

and

coverity#1397044 Unchecked return value

Change-Id: I193bd676e417c35450efa91cb5773c78c998b63f
This commit is contained in:
Caolán McNamara 2016-12-12 09:41:17 +00:00
parent c5ba9161a8
commit 510f497f05
2 changed files with 2 additions and 2 deletions

View File

@ -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 ));

View File

@ -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