diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-05 22:59:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-06 12:02:41 +0100 |
commit | df3ed9c8432359f6d539e2e4a1819dc68d885fdf (patch) | |
tree | 7e0f248ae930e485a5f1804685f237a2078d91e5 /sc/inc | |
parent | 4d9f4af05f78e8c5126e011e89a172026021691a (diff) |
sc: replace boost::ptr_map with std::map<std::unique_ptr>
Change-Id: Id4f24d8aa3db4e569f3eafa6d4ab32b0a95bf3c9
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/rangenam.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index 812af42c5744..426329a1818f 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -26,9 +26,9 @@ #include "scdllapi.h" #include "calcmacros.hxx" +#include <memory> #include <map> #include <vector> -#include <boost/ptr_container/ptr_map.hpp> class ScDocument; class ScTokenArray; @@ -170,8 +170,8 @@ class ScRangeName { private: typedef std::vector<ScRangeData*> IndexDataType; - typedef ::boost::ptr_map<OUString, ScRangeData> DataType; - DataType maData; + typedef ::std::map<OUString, std::unique_ptr<ScRangeData>> DataType; + DataType m_Data; IndexDataType maIndexToData; public: @@ -208,7 +208,7 @@ public: bool empty() const; /** Insert object into set. - @ATTENTION: The underlying ::boost::ptr_map_adapter::insert(p) takes + @ATTENTION: The underlying ::std::map<std::unique_ptr>::insert(p) takes ownership of p and if it can't insert it deletes the object! So, if this insert here returns false the object where p pointed to is gone! */ |