diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-06 17:03:25 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-06 20:37:39 +0100 |
commit | 37856f59d2351951b95cf5eb3a5e4f0c011a8762 (patch) | |
tree | 55777665cff7b7145c5b54cf7503aab5db33ca34 /sc/inc/dpsave.hxx | |
parent | ce6401c263b9f098c1fad636656749db6c6f22a1 (diff) |
sc: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: Iea907bd407d0a6d1d7fa8a5a98ae7a9b4bbed642
Diffstat (limited to 'sc/inc/dpsave.hxx')
-rw-r--r-- | sc/inc/dpsave.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx index 77cdcf54a5c1..4d7467aa2a16 100644 --- a/sc/inc/dpsave.hxx +++ b/sc/inc/dpsave.hxx @@ -22,8 +22,7 @@ #include <list> #include <memory> - -#include <boost/ptr_container/ptr_vector.hpp> +#include <vector> #include <com/sun/star/sheet/XDimensionsSupplier.hpp> #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> @@ -241,10 +240,10 @@ class ScDPSaveData typedef std::unordered_map<OUString, size_t, OUStringHash> DupNameCountType; public: typedef std::unordered_map<OUString, size_t, OUStringHash> DimOrderType; - typedef boost::ptr_vector<ScDPSaveDimension> DimsType; + typedef std::vector<std::unique_ptr<ScDPSaveDimension>> DimsType; private: - DimsType aDimList; + DimsType m_DimList; DupNameCountType maDupNameCounts; /// keep track of number of duplicates in each name. ScDPDimensionSaveData* pDimensionData; // settings that create new dimensions sal_uInt16 nColumnGrandMode; @@ -273,7 +272,7 @@ public: SC_DLLPUBLIC void SetGrandTotalName(const OUString& rName); SC_DLLPUBLIC const OUString* GetGrandTotalName() const; - const DimsType& GetDimensions() const { return aDimList;} + const DimsType& GetDimensions() const { return m_DimList; } /** * Get sort order map to sort row and column dimensions in order of |