diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-07 00:20:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-09 12:04:12 +0100 |
commit | 8e36027e2768b4d9d7c8beff864a557c450184ca (patch) | |
tree | f4828d0198b193033c5cd6935c9e3e76f8d58abc /sc/source/ui/unoobj/condformatuno.cxx | |
parent | a3e410a043f42e70836ca564a5cccdd12664b457 (diff) |
sc: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: Id80f6d6be9f5cb15448ea00299b8e371ccd812ee
Diffstat (limited to 'sc/source/ui/unoobj/condformatuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/condformatuno.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx index 2626c74c52ab..e561ddfa1158 100644 --- a/sc/source/ui/unoobj/condformatuno.cxx +++ b/sc/source/ui/unoobj/condformatuno.cxx @@ -1596,7 +1596,7 @@ void setIconSetEntry(ScIconSetFormat* pFormat, uno::Reference<sheet::XIconSetEnt if (!bFound) throw lang::IllegalArgumentException(); - pData->maEntries[nPos].SetType(eType); + pData->m_Entries[nPos]->SetType(eType); switch (eType) { case COLORSCALE_FORMULA: @@ -1605,7 +1605,7 @@ void setIconSetEntry(ScIconSetFormat* pFormat, uno::Reference<sheet::XIconSetEnt default: { double nVal = xEntry->getFormula().toDouble(); - pData->maEntries[nPos].SetValue(nVal); + pData->m_Entries[nPos]->SetValue(nVal); } break; } @@ -1786,10 +1786,10 @@ ScIconSetEntryObj::~ScIconSetEntryObj() ScColorScaleEntry* ScIconSetEntryObj::getCoreObject() { ScIconSetFormat* pFormat = mxParent->getCoreObject(); - if (pFormat->GetIconSetData()->maEntries.size() <= mnPos) + if (pFormat->GetIconSetData()->m_Entries.size() <= mnPos) throw lang::IllegalArgumentException(); - return &pFormat->GetIconSetData()->maEntries[mnPos]; + return pFormat->GetIconSetData()->m_Entries[mnPos].get(); } sal_Int32 ScIconSetEntryObj::getType() |