diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-08-19 15:45:57 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-08-19 19:36:18 +0000 |
commit | b5ae7dbc871df57686a603dfa99e8179a0e3a4b8 (patch) | |
tree | 23970f3c875bf1c2244e4dc7f37a86c74ed40cbb /sc/source/ui/unoobj | |
parent | 013efe75eba3d209a7bd072d608126dac6fa191c (diff) |
sc: replace boost::ptr_set with std::set<std::unique_ptr>
Change-Id: I93bdb33a442a358b0067d57499b11d73bfbaa2d9
Reviewed-on: https://gerrit.libreoffice.org/17860
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index eb2b7d17abab..7bda63839dba 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -2249,7 +2249,7 @@ ScDatabaseRangeObj* ScDatabaseRangesObj::GetObjectByIndex_Impl(size_t nIndex) ScDBCollection::NamedDBs::const_iterator itr = rDBs.begin(); ::std::advance(itr, nIndex); // boundary check is done above. - return new ScDatabaseRangeObj(pDocShell, itr->GetName()); + return new ScDatabaseRangeObj(pDocShell, (*itr)->GetName()); } ScDatabaseRangeObj* ScDatabaseRangesObj::GetObjectByName_Impl(const OUString& aName) @@ -2380,7 +2380,7 @@ uno::Sequence<OUString> SAL_CALL ScDatabaseRangesObj::getElementNames() uno::Sequence<OUString> aSeq(rDBs.size()); ScDBCollection::NamedDBs::const_iterator itr = rDBs.begin(), itrEnd = rDBs.end(); for (size_t i = 0; itr != itrEnd; ++itr, ++i) - aSeq[i] = itr->GetName(); + aSeq[i] = (*itr)->GetName(); return aSeq; } |