From 31a4248332cc95a23337ac9c6d7218fe109bce57 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 Nov 2015 13:52:28 +0200 Subject: sfx2: boost::ptr_vector->std::vector Change-Id: I0ffe29145fb56f284300d40dfea323a8b16c26de --- include/sfx2/stbitem.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sfx2/stbitem.hxx') diff --git a/include/sfx2/stbitem.hxx b/include/sfx2/stbitem.hxx index 97cc515cac93..43eb733a249d 100644 --- a/include/sfx2/stbitem.hxx +++ b/include/sfx2/stbitem.hxx @@ -115,7 +115,7 @@ public: StatusBar& GetStatusBar() const { return *pBar; } static SfxStatusBarControl* CreateControl( sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar *pBar, SfxModule* ); - static void RegisterStatusBarControl(SfxModule*, SfxStbCtrlFactory*); + static void RegisterStatusBarControl(SfxModule*, const SfxStbCtrlFactory&); }; @@ -129,7 +129,7 @@ public: SfxStatusBarControl* Class::CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar &rStb ) \ { return new Class( nSlotId, nId, rStb ); } \ void Class::RegisterControl(sal_uInt16 nSlotId, SfxModule *pMod) \ - { SfxStatusBarControl::RegisterStatusBarControl( pMod, new SfxStbCtrlFactory( \ + { SfxStatusBarControl::RegisterStatusBarControl( pMod, SfxStbCtrlFactory( \ Class::CreateImpl, typeid(nItemClass), nSlotId ) ); } -- cgit