diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-08-19 17:07:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-08-19 19:53:28 +0000 |
commit | f15cbf2451d08ccddde9643c9f926a322f9f9917 (patch) | |
tree | 933ec3f719ef52fcbefd1d081e9c862c638d90a3 /sc/inc/dbdata.hxx | |
parent | b5ae7dbc871df57686a603dfa99e8179a0e3a4b8 (diff) |
sc: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: I2a56ebf8edb30b5f16e09237f9480484a699170e
Reviewed-on: https://gerrit.libreoffice.org/17861
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc/inc/dbdata.hxx')
-rw-r--r-- | sc/inc/dbdata.hxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index 877a7fc0e50d..7508e0f78fbd 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -25,11 +25,11 @@ #include "address.hxx" #include "global.hxx" -#include <boost/ptr_container/ptr_vector.hpp> #include <boost/scoped_ptr.hpp> #include <memory> #include <set> +#include <vector> class ScDocument; struct ScSortParam; @@ -219,9 +219,15 @@ public: */ class AnonDBs { - typedef ::boost::ptr_vector<ScDBData> DBsType; - DBsType maDBs; + typedef ::std::vector<std::unique_ptr<ScDBData>> DBsType; + DBsType m_DBs; + + AnonDBs& operator=(AnonDBs const&) = delete; + public: + AnonDBs(); + AnonDBs(AnonDBs const&); + typedef DBsType::iterator iterator; typedef DBsType::const_iterator const_iterator; |