summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-11 13:52:28 +0200
committerNoel Grandin <noel@peralex.com>2015-11-12 08:01:35 +0200
commit31a4248332cc95a23337ac9c6d7218fe109bce57 (patch)
tree5f522554dc047e8f9fa1d5c545d10ecbf3e22558 /sfx2/source/appl
parentb6639b0e12e2bf914371124b870e55761b1155a2 (diff)
sfx2: boost::ptr_vector->std::vector
Change-Id: I0ffe29145fb56f284300d40dfea323a8b16c26de
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/appreg.cxx20
-rw-r--r--sfx2/source/appl/module.cxx16
2 files changed, 18 insertions, 18 deletions
diff --git a/sfx2/source/appl/appreg.cxx b/sfx2/source/appl/appreg.cxx
index 04b68b8baf0e..fc648ff36c8f 100644
--- a/sfx2/source/appl/appreg.cxx
+++ b/sfx2/source/appl/appreg.cxx
@@ -66,11 +66,11 @@ void SfxApplication::Registrations_Impl()
-void SfxApplication::RegisterToolBoxControl_Impl( SfxModule *pMod, SfxTbxCtrlFactory *pFact )
+void SfxApplication::RegisterToolBoxControl_Impl( SfxModule *pMod, const SfxTbxCtrlFactory& rFact )
{
if ( pMod )
{
- pMod->RegisterToolBoxControl( pFact );
+ pMod->RegisterToolBoxControl( rFact );
return;
}
@@ -78,24 +78,24 @@ 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 == pFact->nTypeId &&
- (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
+ if ( pF->nTypeId == rFact.nTypeId &&
+ (pF->nSlotId == rFact.nSlotId || pF->nSlotId == 0) )
{
SAL_INFO("sfx", "TbxController registration is not clearly defined!");
}
}
#endif
- pAppData_Impl->pTbxCtrlFac->push_back( pFact );
+ pAppData_Impl->pTbxCtrlFac->push_back( rFact );
}
-void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, SfxStbCtrlFactory *pFact )
+void SfxApplication::RegisterStatusBarControl_Impl( SfxModule *pMod, const SfxStbCtrlFactory& rFact )
{
if ( pMod )
{
- pMod->RegisterStatusBarControl( pFact );
+ pMod->RegisterStatusBarControl( rFact );
return;
}
@@ -103,15 +103,15 @@ 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 == pFact->nTypeId &&
- (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
+ if ( pF->nTypeId == rFact.nTypeId &&
+ (pF->nSlotId == rFact.nSlotId || pF->nSlotId == 0) )
{
SAL_INFO("sfx", "StbController registration is not clearly defined!");
}
}
#endif
- pAppData_Impl->pStbCtrlFac->push_back( pFact );
+ pAppData_Impl->pStbCtrlFac->push_back( rFact );
}
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx
index f9152c9a012f..327ace286269 100644
--- a/sfx2/source/appl/module.cxx
+++ b/sfx2/source/appl/module.cxx
@@ -233,7 +233,7 @@ void SfxModule::RegisterChildWindow(SfxChildWinFactory *pFact)
-void SfxModule::RegisterToolBoxControl( SfxTbxCtrlFactory *pFact )
+void SfxModule::RegisterToolBoxControl( const SfxTbxCtrlFactory& rFact )
{
if (!pImpl->pTbxCtrlFac)
pImpl->pTbxCtrlFac = new SfxTbxCtrlFactArr_Impl;
@@ -242,20 +242,20 @@ void SfxModule::RegisterToolBoxControl( SfxTbxCtrlFactory *pFact )
for ( size_t n=0; n<pImpl->pTbxCtrlFac->size(); n++ )
{
SfxTbxCtrlFactory *pF = &(*pImpl->pTbxCtrlFac)[n];
- if ( pF->nTypeId == pFact->nTypeId &&
- (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
+ if ( pF->nTypeId == rFact.nTypeId &&
+ (pF->nSlotId == rFact.nSlotId || pF->nSlotId == 0) )
{
SAL_INFO("sfx2.appl", "TbxController-Registering is not clearly defined!");
}
}
#endif
- pImpl->pTbxCtrlFac->push_back( pFact );
+ pImpl->pTbxCtrlFac->push_back( rFact );
}
-void SfxModule::RegisterStatusBarControl( SfxStbCtrlFactory *pFact )
+void SfxModule::RegisterStatusBarControl( const SfxStbCtrlFactory& rFact )
{
if (!pImpl->pStbCtrlFac)
pImpl->pStbCtrlFac = new SfxStbCtrlFactArr_Impl;
@@ -264,15 +264,15 @@ void SfxModule::RegisterStatusBarControl( SfxStbCtrlFactory *pFact )
for ( size_t n=0; n<pImpl->pStbCtrlFac->size(); n++ )
{
SfxStbCtrlFactory *pF = &(*pImpl->pStbCtrlFac)[n];
- if ( pF->nTypeId == pFact->nTypeId &&
- (pF->nSlotId == pFact->nSlotId || pF->nSlotId == 0) )
+ if ( pF->nTypeId == rFact.nTypeId &&
+ (pF->nSlotId == rFact.nSlotId || pF->nSlotId == 0) )
{
SAL_INFO("sfx2.appl", "TbxController-Registering is not clearly defined!");
}
}
#endif
- pImpl->pStbCtrlFac->push_back( pFact );
+ pImpl->pStbCtrlFac->push_back( rFact );
}