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

Mike Kaganski mike.kaganski at collabora.com
Sun Mar 25 09:41:05 UTC 2018


 sfx2/source/control/objface.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 08953137a4cba86e033d9c102ac679277cbc2f27
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Sun Mar 25 09:31:29 2018 +0100

    Remove useless check
    
    Change-Id: I9cfb8e7865e31b5c69e0b4b99426e96c7444224f
    Reviewed-on: https://gerrit.libreoffice.org/51820
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index 78f561e3cedf..365dad5812ee 100644
--- a/sfx2/source/control/objface.cxx
+++ b/sfx2/source/control/objface.cxx
@@ -219,7 +219,7 @@ const SfxSlot* SfxInterface::GetSlot( sal_uInt16 nFuncId ) const
     if ( !p && pGenoType )
         return pGenoType->GetSlot( nFuncId );
 
-    return p ? static_cast<const SfxSlot*>(p) : nullptr;
+    return static_cast<const SfxSlot*>(p);
 }
 
 const SfxSlot* SfxInterface::GetSlot( const OUString& rCommand ) const


More information about the Libreoffice-commits mailing list