summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-11 12:00:24 +0200
committerNoel Grandin <noel@peralex.com>2015-11-12 08:01:34 +0200
commit9149faa165d314694898dcecb25e36acee3bd1fd (patch)
tree85bf27e6f5dbd9f0d35b812a4772fb49dd4200e0 /sfx2
parent47612d6beb4fb0aa669f73954f67910480c3cc1e (diff)
sfx2: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I497702f3cdde1db0712d030756b9850d48d67380
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 39f85b12653f..fabf45f1b36f 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -64,8 +64,8 @@
#include <com/sun/star/frame/XModuleManager.hpp>
#include <memory>
-#include <boost/ptr_container/ptr_vector.hpp>
#include <unordered_map>
+#include <vector>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -100,14 +100,14 @@ struct SfxFoundCache_Impl
class SfxFoundCacheArr_Impl
{
- typedef boost::ptr_vector<SfxFoundCache_Impl> DataType;
+ typedef std::vector<std::unique_ptr<SfxFoundCache_Impl> > DataType;
DataType maData;
public:
SfxFoundCache_Impl& operator[] ( size_t i )
{
- return maData[i];
+ return *maData[i].get();
}
size_t size() const
@@ -117,7 +117,7 @@ public:
void push_back( SfxFoundCache_Impl* p )
{
- maData.push_back(p);
+ maData.push_back(std::unique_ptr<SfxFoundCache_Impl>(p));
}
};