diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:59:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:20 +0000 |
commit | 56859198c2e49aa465c49bbfc5a18bfaef056202 (patch) | |
tree | d66ee0bb88181248c3a0518ef3d71f4a42b32b24 /sw | |
parent | 8c6db946a5ffb2274eba3a2688f56ee7f2f60393 (diff) |
coverity#1399014 Unchecked return value
Change-Id: I0423d9be8032cb7d405cba258c79e1c625f6eee8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/fmtcol.cxx | 6 |
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() ) |