diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-13 17:21:48 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-13 17:53:14 +0100 |
commit | 87adef1bde1d4b506951dff2a1228fecdcbdc936 (patch) | |
tree | d10bb3e26eb2f6a98d0b918146962bf19fe19523 /sc/source/filter/ftools | |
parent | d77d16dea9edcf5b4a91326ecc1a67bebfea6fc7 (diff) |
sc: replace boost::ptr_map with std::map<std::unique_ptr>
Change-Id: Ia051a8f0d20a6f718395e1420d7f409099607156
Diffstat (limited to 'sc/source/filter/ftools')
-rw-r--r-- | sc/source/filter/ftools/sharedformulagroups.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/ftools/sharedformulagroups.cxx b/sc/source/filter/ftools/sharedformulagroups.cxx index 46ccb31d03c6..1efd8d068015 100644 --- a/sc/source/filter/ftools/sharedformulagroups.cxx +++ b/sc/source/filter/ftools/sharedformulagroups.cxx @@ -13,13 +13,13 @@ namespace sc { void SharedFormulaGroups::set( size_t nSharedId, ScTokenArray* pArray ) { - maStore.insert(nSharedId, pArray); + m_Store.insert(std::make_pair(nSharedId, std::unique_ptr<ScTokenArray>(pArray))); } const ScTokenArray* SharedFormulaGroups::get( size_t nSharedId ) const { - StoreType::const_iterator it = maStore.find(nSharedId); - return it == maStore.end() ? nullptr : it->second; + StoreType::const_iterator const it = m_Store.find(nSharedId); + return it == m_Store.end() ? nullptr : it->second.get(); } } |