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