sw/source/core/layout/flylay.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5258b4153239ebd8753b2dd30408df58859f29bb
Author: Caolán McNamara <caol...@redhat.com>
Date:   Mon Dec 18 09:02:19 2017 +0000

    coverity#1426315 Logically dead code
    
    Change-Id: I61368c5fa5675ac6a9e43642700ae3ea03d2fda9

diff --git a/sw/source/core/layout/flylay.cxx b/sw/source/core/layout/flylay.cxx
index 92342f5928f6..ae487ebee352 100644
--- a/sw/source/core/layout/flylay.cxx
+++ b/sw/source/core/layout/flylay.cxx
@@ -717,7 +717,7 @@ void SwFlyLayFrame::Modify( const SfxPoolItem* pOld, const 
SfxPoolItem *pNew )
 
     if (pNew)
     {
-        const sal_uInt16 nWhich = pNew ? pNew->Which() : 0;
+        const sal_uInt16 nWhich = pNew->Which();
         if( RES_ATTRSET_CHG == nWhich && SfxItemState::SET ==
             static_cast<const SwAttrSetChg*>(pNew)->GetChgSet()->GetItemState( 
RES_ANCHOR, false,
                 reinterpret_cast<const SfxPoolItem**>(&pAnch) ))
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to