summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-07 00:20:26 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-09 12:04:12 +0100
commit8e36027e2768b4d9d7c8beff864a557c450184ca (patch)
treef4828d0198b193033c5cd6935c9e3e76f8d58abc /sc/qa/unit/ucalc.cxx
parenta3e410a043f42e70836ca564a5cccdd12664b457 (diff)
sc: replace boost::ptr_vector with std::vector<std::unique_ptr>
Change-Id: Id80f6d6be9f5cb15448ea00299b8e371ccd812ee
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r--sc/qa/unit/ucalc.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 169f03dada59..356222868e4d 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -70,6 +70,7 @@
#include <formula/IFunctionDescription.hxx>
+#include <o3tl/make_unique.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
@@ -5946,9 +5947,9 @@ void Test::testIconSet()
ScIconSetFormat* pEntry = new ScIconSetFormat(m_pDoc);
ScIconSetFormatData* pData = new ScIconSetFormatData;
- pData->maEntries.push_back(new ScColorScaleEntry(0, COL_BLUE));
- pData->maEntries.push_back(new ScColorScaleEntry(1, COL_GREEN));
- pData->maEntries.push_back(new ScColorScaleEntry(2, COL_RED));
+ pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(0, COL_BLUE));
+ pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(1, COL_GREEN));
+ pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(2, COL_RED));
pEntry->SetIconSetData(pData);
m_pDoc->AddCondFormatData(pFormat->GetRange(), 0, 1);