Kaydet (Commit) 9149faa1 authored tarafından Noel Grandin's avatar Noel Grandin

sfx2: boost::ptr_vector->std::vector<std::unique_ptr>

Change-Id: I497702f3cdde1db0712d030756b9850d48d67380
üst 47612d6b
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
#include <com/sun/star/frame/XModuleManager.hpp> #include <com/sun/star/frame/XModuleManager.hpp>
#include <memory> #include <memory>
#include <boost/ptr_container/ptr_vector.hpp>
#include <unordered_map> #include <unordered_map>
#include <vector>
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
...@@ -100,14 +100,14 @@ struct SfxFoundCache_Impl ...@@ -100,14 +100,14 @@ struct SfxFoundCache_Impl
class SfxFoundCacheArr_Impl class SfxFoundCacheArr_Impl
{ {
typedef boost::ptr_vector<SfxFoundCache_Impl> DataType; typedef std::vector<std::unique_ptr<SfxFoundCache_Impl> > DataType;
DataType maData; DataType maData;
public: public:
SfxFoundCache_Impl& operator[] ( size_t i ) SfxFoundCache_Impl& operator[] ( size_t i )
{ {
return maData[i]; return *maData[i].get();
} }
size_t size() const size_t size() const
...@@ -117,7 +117,7 @@ public: ...@@ -117,7 +117,7 @@ public:
void push_back( SfxFoundCache_Impl* p ) void push_back( SfxFoundCache_Impl* p )
{ {
maData.push_back(p); maData.push_back(std::unique_ptr<SfxFoundCache_Impl>(p));
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment