sfx2/source/control/objface.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 08953137a4cba86e033d9c102ac679277cbc2f27 Author: Mike Kaganski <mike.kagan...@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 <c...@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kagan...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits