summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-21 14:45:34 +0200
committerNoel Grandin <noel@peralex.com>2015-10-21 14:45:34 +0200
commit7950288c58522b6bd1c8c804d3a336d1ca388c58 (patch)
tree49d10dff2390a60149b28954108eefa614209f31 /extensions
parent741543132ad355e295ff0aafd1105c1225fef670 (diff)
boost::ptr_vector->std::vector
no need to manage uno::Reference via extra heap objects Change-Id: I3092b5103a31fcff8122e4ce9cd1cbb42f5ed910
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/toolbar.cxx14
-rw-r--r--extensions/source/bibliography/toolbar.hxx4
2 files changed, 8 insertions, 10 deletions
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 4bfb4ff562a9..0a47d3bd7e16 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -277,24 +277,22 @@ void BibToolBar::InitListener()
xTrans->parseStrict( aURL );
- BibToolBarListener* pListener=NULL;
+ BibToolBarListenerRef xListener;
if(nId==TBC_LB_SOURCE)
{
- pListener=new BibTBListBoxListener(this,aURL.Complete,nId);
+ xListener=new BibTBListBoxListener(this,aURL.Complete,nId);
}
else if(nId==TBC_ED_QUERY)
{
- pListener=new BibTBEditListener(this,aURL.Complete,nId);
+ xListener=new BibTBEditListener(this,aURL.Complete,nId);
}
else
{
- pListener=new BibToolBarListener(this,aURL.Complete,nId);
+ xListener=new BibToolBarListener(this,aURL.Complete,nId);
}
- BibToolBarListenerRef* pxInsert = new uno::Reference<frame::XStatusListener>;
- (*pxInsert) = pListener;
- aListenerArr.push_back( pxInsert );
- xDisp->addStatusListener(uno::Reference< frame::XStatusListener > (pListener),aURL);
+ aListenerArr.push_back( xListener );
+ xDisp->addStatusListener(xListener,aURL);
}
}
}
diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx
index fdfd3790ff7c..f195608ec797 100644
--- a/extensions/source/bibliography/toolbar.hxx
+++ b/extensions/source/bibliography/toolbar.hxx
@@ -30,7 +30,7 @@
#include <vcl/fixed.hxx>
#include <vcl/timer.hxx>
#include <cppuhelper/implbase.hxx>
-#include <boost/ptr_container/ptr_vector.hpp>
+#include <vector>
class BibDataManager;
class BibToolBar;
@@ -102,7 +102,7 @@ public:
typedef css::uno::Reference< css::frame::XStatusListener> BibToolBarListenerRef;
-typedef boost::ptr_vector<BibToolBarListenerRef> BibToolBarListenerArr;
+typedef std::vector<BibToolBarListenerRef> BibToolBarListenerArr;
class BibToolBar: public ToolBox
{