diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-12 09:39:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-12 10:45:04 +0200 |
commit | e666bd8e6d00dadbea74b96a8be8ec830ec92c46 (patch) | |
tree | 7c864fd096036527f6ba5afba5dcc07d0f7b4275 /sc/source/ui/dbgui | |
parent | 8733b2ab2480cddf96a694ee3fe12703e402a51f (diff) |
sc: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I1e1d27b2e7262cda230f193a867d288220dc0ec6
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/PivotLayoutTreeListData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx index 7623ed36eb65..9bee06659614 100644 --- a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx +++ b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx @@ -137,7 +137,7 @@ void ScPivotLayoutTreeListData::FillDataField(ScPivotFieldVector& rDataFields) pItemValue->maName, pItemValue->maFunctionData.mnDupCount); - maDataItemValues.push_back(pItemValue); + maDataItemValues.push_back(std::unique_ptr<ScItemValue>(pItemValue)); InsertEntry(sDataItemName, nullptr, false, TREELIST_APPEND, pItemValue); } } @@ -193,7 +193,7 @@ void ScPivotLayoutTreeListData::InsertEntryForItem(ScItemValue* pItemValue, sal_ { ScItemValue* pDataItemValue = new ScItemValue(pItemValue); pDataItemValue->mpOriginalItemValue = pItemValue; - maDataItemValues.push_back(pDataItemValue); + maDataItemValues.push_back(std::unique_ptr<ScItemValue>(pDataItemValue)); ScPivotFuncData& rFunctionData = pDataItemValue->maFunctionData; |