summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-21 14:59:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-21 17:05:20 +0000
commit56859198c2e49aa465c49bbfc5a18bfaef056202 (patch)
treed66ee0bb88181248c3a0518ef3d71f4a42b32b24 /sw
parent8c6db946a5ffb2274eba3a2688f56ee7f2f60393 (diff)
coverity#1399014 Unchecked return value
Change-Id: I0423d9be8032cb7d405cba258c79e1c625f6eee8
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/fmtcol.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 65eb83a7f1fc..27a6c39f47cc 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -75,9 +75,9 @@ namespace TextFormatCollFunc
{
SwNumRule* pNumRule( nullptr );
- const SwNumRuleItem* pNumRuleItem( nullptr );
- rTextFormatColl.GetItemState( RES_PARATR_NUMRULE, false, reinterpret_cast<const SfxPoolItem**>(&pNumRuleItem) );
- if ( pNumRuleItem )
+ const SwNumRuleItem* pNumRuleItem(nullptr);
+ (void)rTextFormatColl.GetItemState(RES_PARATR_NUMRULE, false, reinterpret_cast<const SfxPoolItem**>(&pNumRuleItem));
+ if (pNumRuleItem)
{
const OUString sNumRuleName = pNumRuleItem->GetValue();
if ( !sNumRuleName.isEmpty() )