diff options
-rw-r--r-- | extensions/source/bibliography/toolbar.cxx | 14 | ||||
-rw-r--r-- | extensions/source/bibliography/toolbar.hxx | 4 |
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 { |