From 266abd09fd2d449351e356bc48f65c725b121247 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 11 Nov 2015 11:25:23 +0000 Subject: fix sfx2 build Change-Id: Iff8317bc59b033b5765d2ba3356f8185cc40a6b3 --- sfx2/source/appl/appreg.cxx | 6 +++--- sfx2/source/appl/module.cxx | 6 +++--- 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; npTbxCtrlFac->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; npStbCtrlFac->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; npMenuCtrlFac->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; npTbxCtrlFac->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; npStbCtrlFac->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; npMenuCtrlFac->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()); -- cgit