From 510f497f05cbf65e2ee425a8af43f47406dbfcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 12 Dec 2016 09:41:17 +0000 Subject: [PATCH] coverity#1397045 Unchecked return value and coverity#1397044 Unchecked return value Change-Id: I193bd676e417c35450efa91cb5773c78c998b63f --- editeng/source/uno/unoipset.cxx | 2 +- svl/source/items/itemset.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx index 60bac11af009..d02c64ccb4bf 100644 --- a/editeng/source/uno/unoipset.cxx +++ b/editeng/source/uno/unoipset.cxx @@ -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 )); diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 4f6465e1875d..9996e9330476 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -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