diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:59:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:20 +0000 |
commit | 8c6db946a5ffb2274eba3a2688f56ee7f2f60393 (patch) | |
tree | c72e2e6225742a1b2f6c78f457ad2947fd4e1363 | |
parent | 7667869db0e6c712fafd6aa98a2076dc4d3e19e2 (diff) |
coverity#1399013 Unchecked return value
Change-Id: I5e9f32dfc97c0a06fcae399412354eda91bf3f4b
-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 f0b91d829788..65eb83a7f1fc 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -54,11 +54,11 @@ namespace TextFormatCollFunc if ( !pTextFormatColl->StayAssignedToListLevelOfOutlineStyle() && pTextFormatColl->IsAssignedToListLevelOfOutlineStyle() ) { - if ( !pNewNumRuleItem ) + if (!pNewNumRuleItem) { - pTextFormatColl->GetItemState( RES_PARATR_NUMRULE, false, reinterpret_cast<const SfxPoolItem**>(&pNewNumRuleItem) ); + (void)pTextFormatColl->GetItemState(RES_PARATR_NUMRULE, false, reinterpret_cast<const SfxPoolItem**>(&pNewNumRuleItem)); } - if ( pNewNumRuleItem ) + if (pNewNumRuleItem) { OUString sNumRuleName = pNewNumRuleItem->GetValue(); if ( sNumRuleName.isEmpty() || |