diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-11 11:25:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-11 11:25:23 +0000 |
commit | 266abd09fd2d449351e356bc48f65c725b121247 (patch) | |
tree | 1735a9faf06dfe7c6688eff35a55e688b768f123 /sfx2 | |
parent | b92174e4c723bacfcfc245a483365cc7fb5d72c1 (diff) |
fix sfx2 build
Change-Id: Iff8317bc59b033b5765d2ba3356f8185cc40a6b3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appreg.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/appl/module.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/appreg.cxx b/sfx2/source/appl/appreg.cxx index 8ba3ca2d928f..215478f566f2 100644 --- a/sfx2/source/appl/appreg.cxx +++ b/sfx2/source/appl/appreg.cxx @@ -78,7 +78,7 @@ void SfxApplication::RegisterToolBoxControl_Impl( SfxModule *pMod, SfxTbxCtrlFac for ( size_t n=0; n<pAppData_Impl->pTbxCtrlFac->size(); n++ ) { SfxTbxCtrlFactory *pF = &(*pAppData_Impl->pTbxCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx", "TbxController registration is not clearly defined!"); @@ -103,7 +103,7 @@ void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, SfxStbCtrlF for ( size_t n=0; n<pAppData_Impl->pStbCtrlFac->size(); n++ ) { SfxStbCtrlFactory *pF = &(*pAppData_Impl->pStbCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx", "StbController registration is not clearly defined!"); @@ -128,7 +128,7 @@ void SfxApplication::RegisterMenuControl_Impl( SfxModule *pMod, SfxMenuCtrlFacto for ( size_t n=0; n<pAppData_Impl->pMenuCtrlFac->size(); n++ ) { SfxMenuCtrlFactory *pF = &(*pAppData_Impl->pMenuCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx", "MenuController register is not clearly defined!"); diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 99e702370662..6de9ecb4caa9 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -242,7 +242,7 @@ void SfxModule::RegisterToolBoxControl( SfxTbxCtrlFactory *pFact ) for ( size_t n=0; n<pImpl->pTbxCtrlFac->size(); n++ ) { SfxTbxCtrlFactory *pF = &(*pImpl->pTbxCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx2.appl", "TbxController-Registering is not clearly defined!"); @@ -264,7 +264,7 @@ void SfxModule::RegisterStatusBarControl( SfxStbCtrlFactory *pFact ) for ( size_t n=0; n<pImpl->pStbCtrlFac->size(); n++ ) { SfxStbCtrlFactory *pF = &(*pImpl->pStbCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx2.appl", "TbxController-Registering is not clearly defined!"); @@ -286,7 +286,7 @@ void SfxModule::RegisterMenuControl( SfxMenuCtrlFactory *pFact ) for ( size_t n=0; n<pImpl->pMenuCtrlFac->size(); n++ ) { SfxMenuCtrlFactory *pF = &(*pImpl->pMenuCtrlFac)[n]; - if ( pF->nTypeId && pF->nTypeId == pFact->nTypeId && + if ( pF->nTypeId == pFact->nTypeId && (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) ) { SAL_INFO("sfx2.appl", "MenuController-Registering is not clearly defined!"); diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index d61b0cdf2c8f..8ec2ce8d3054 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1830,7 +1830,7 @@ bool SfxDispatcher::_FillState(const SfxSlotServer& rSvr, SfxItemSet& rState, { sal_uInt16 nSlotId = rState.GetPool()->GetSlotId(pItem->Which()); SAL_INFO_IF( - !pItem->IsA(pIF->GetSlot(nSlotId)->GetType()->Type()), + typeid(pItem) != *pIF->GetSlot(nSlotId)->GetType()->Type(), "sfx.control", "item-type unequal to IDL (=> no BASIC) with SID: " << nSlotId << " in " << pIF->GetClassName()); |