[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Mon Dec 25 21:11:10 UTC 2017


 sw/source/core/table/swtable.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ad653c3495d60cacd42c8b26f575ad70a656c960
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 25 21:10:21 2017 +0000

    coverity#1426946 Unchecked return value
    
    Change-Id: I42d94649df7e64dce0af7ae242523106b1a04679

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 41f7697f8cda..3a1682f59e66 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -2232,8 +2232,7 @@ void SwTableBoxFormat::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew
                     else
                     {
                         // fetch the current Item
-                        GetItemState( RES_BOXATR_FORMAT, false,
-                                            reinterpret_cast<const SfxPoolItem**>(&pNewFormat) );
+                        (void)GetItemState(RES_BOXATR_FORMAT, false, reinterpret_cast<const SfxPoolItem**>(&pNewFormat));
                         nOldFormat = GetTableBoxNumFormat().GetValue();
                         nNewFormat = pNewFormat ? pNewFormat->GetValue() : nOldFormat;
                     }


More information about the Libreoffice-commits mailing list