summaryrefslogtreecommitdiff
path: root/sc/source/filter/ftools
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-13 17:21:48 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-13 17:53:14 +0100
commit87adef1bde1d4b506951dff2a1228fecdcbdc936 (patch)
treed10bb3e26eb2f6a98d0b918146962bf19fe19523 /sc/source/filter/ftools
parentd77d16dea9edcf5b4a91326ecc1a67bebfea6fc7 (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.cxx6
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();
}
}