summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-03-25 09:31:29 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2018-03-25 11:40:43 +0200
commit08953137a4cba86e033d9c102ac679277cbc2f27 (patch)
treee42aa8c69fd3e2d3f468252e42695e863c830298 /sfx2
parent1401f5fbc8427178371b2d6add11510e06e6414f (diff)
Remove useless check
Change-Id: I9cfb8e7865e31b5c69e0b4b99426e96c7444224f Reviewed-on: https://gerrit.libreoffice.org/51820 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/objface.cxx2
1 files changed, 1 insertions, 1 deletions
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