summaryrefslogtreecommitdiff
path: root/sc/inc/userlist.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-12 16:03:01 +0200
committerNoel Grandin <noel@peralex.com>2015-11-13 10:54:18 +0200
commit2aacf6c2cd82322b953988ff30d3bc997ae76d7b (patch)
treebcf76344d14bdb30698d346406fd02c6ab74805c /sc/inc/userlist.hxx
parentab3d557b48cacb30598c6b5ebb1cadece493fde8 (diff)
sc: boost::ptr_vector->std::vector
Change-Id: Ic4af0579f31c2076fcbc4ac76266e0ae49cb2be8
Diffstat (limited to 'sc/inc/userlist.hxx')
-rw-r--r--sc/inc/userlist.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/inc/userlist.hxx b/sc/inc/userlist.hxx
index 72e8e206cfe6..0ac95e190153 100644
--- a/sc/inc/userlist.hxx
+++ b/sc/inc/userlist.hxx
@@ -22,7 +22,6 @@
#include "scdllapi.h"
-#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
/**
@@ -47,7 +46,6 @@ private:
public:
ScUserListData(const OUString& rStr);
ScUserListData(const ScUserListData& rData);
- ~ScUserListData();
const OUString& GetString() const { return aStr; }
void SetString(const OUString& rStr);
@@ -63,7 +61,7 @@ public:
*/
class SC_DLLPUBLIC ScUserList
{
- typedef ::boost::ptr_vector<ScUserListData> DataType;
+ typedef std::vector<ScUserListData> DataType;
DataType maData;
public:
typedef DataType::iterator iterator;
@@ -85,8 +83,9 @@ public:
iterator begin();
const_iterator begin() const;
void clear();
+ void reserve(size_t size) { maData.reserve(size); }
size_t size() const;
- void push_back(ScUserListData* p);
+ void push_back(const ScUserListData& r) { maData.push_back(r); }
void erase(iterator itr);
};