diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-03 09:45:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-03 09:39:48 +0000 |
commit | ed6c5a4908edb7d4ab075127b710a92e2abc753f (patch) | |
tree | 7fef43aa51d842e02cdadd3d41d09b905789ec67 /include/sfx2/bindings.hxx | |
parent | 6eabb8fc773b73321705d7a3e52bbe6d6fd7e48f (diff) |
coverity#440972 Dereference before null check
Change-Id: If4a1da1859dbdf19a7084341003fd6c41700971f
Reviewed-on: https://gerrit.libreoffice.org/36040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/bindings.hxx')
-rw-r--r-- | include/sfx2/bindings.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index ee9463358ab0..283864368b5c 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -105,12 +105,10 @@ private: SfxCallMode nCall, const SfxPoolItem **pInternalArgs, bool bGlobalOnly=false); SAL_DLLPRIVATE void SetSubBindings_Impl( SfxBindings* ); SAL_DLLPRIVATE void UpdateSlotServer_Impl(); // Update SlotServer - SAL_DLLPRIVATE SfxItemSet* CreateSet_Impl( SfxStateCache* &pCache, - const SfxSlot* &pRealSlot, - const SfxSlotServer**, - SfxFoundCacheArr_Impl& ); + SAL_DLLPRIVATE SfxItemSet* CreateSet_Impl(SfxStateCache& rCache, const SfxSlot* &pRealSlot, + const SfxSlotServer**, SfxFoundCacheArr_Impl&); SAL_DLLPRIVATE std::size_t GetSlotPos( sal_uInt16 nId, std::size_t nStartSearchAt = 0 ); - SAL_DLLPRIVATE void Update_Impl( SfxStateCache* pCache ); + SAL_DLLPRIVATE void Update_Impl(SfxStateCache& rCache); static SAL_DLLPRIVATE void UpdateControllers_Impl( const SfxFoundCache_Impl& rFound, const SfxPoolItem *pItem, |