summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appreg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appreg.cxx')
-rw-r--r--sfx2/source/appl/appreg.cxx6
1 files changed, 3 insertions, 3 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!");