summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/module.cxx
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/module.cxx
parentb6639b0e12e2bf914371124b870e55761b1155a2 (diff)
sfx2: boost::ptr_vector->std::vector
Change-Id: I0ffe29145fb56f284300d40dfea323a8b16c26de
Diffstat (limited to 'sfx2/source/appl/module.cxx')
-rw-r--r--sfx2/source/appl/module.cxx16
1 files changed, 8 insertions, 8 deletions
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 );
}