summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-12 09:32:28 +0200
committerNoel Grandin <noel@peralex.com>2015-11-12 10:45:04 +0200
commit8733b2ab2480cddf96a694ee3fe12703e402a51f (patch)
treef6ada026b0d86da7d80841f915710be262b870d8 /sc/source/ui/dbgui
parentf24323d4f463ce15f07c07f1bf51ca8dca485923 (diff)
sc: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I1634157c56f5aa7a9096ce1bba4df09fd86f7748
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
index 5efd63f53b73..d4f98ab2b69f 100644
--- a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
@@ -43,7 +43,7 @@ void ScPivotLayoutTreeListLabel::FillLabelFields(ScDPLabelDataVector& rLabelVect
const ScDPLabelData& rLabelData = *it;
ScItemValue* pValue = new ScItemValue(rLabelData.maName, rLabelData.mnCol, rLabelData.mnFuncMask);
- maItemValues.push_back(pValue);
+ maItemValues.push_back(std::unique_ptr<ScItemValue>(pValue));
if (rLabelData.mbDataLayout)
{
maDataItem = maItemValues.size() - 1;
@@ -71,8 +71,8 @@ bool ScPivotLayoutTreeListLabel::IsDataElement(SCCOL nColumn)
ScItemValue* ScPivotLayoutTreeListLabel::GetItem(SCCOL nColumn)
{
if (nColumn == PIVOT_DATA_FIELD)
- return &maItemValues[maDataItem];
- return &maItemValues[nColumn];
+ return maItemValues[maDataItem].get();
+ return maItemValues[nColumn].get();
}
void ScPivotLayoutTreeListLabel::KeyInput(const KeyEvent& rKeyEvent)