summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/pvfundlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-13 10:30:16 +0200
committerNoel Grandin <noel@peralex.com>2015-11-13 10:54:20 +0200
commit343ec4b7234f4eb9709f09d453131100d3283ddc (patch)
treebe2bb9566746b026b2bae1a4cfc6fc69e3f21641 /sc/source/ui/dbgui/pvfundlg.cxx
parent280553e30f4ddc932838f98a9efaac03a988a0df (diff)
sc: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I21fdb9f503241c2fa38f3de059a1f674a6631c78
Diffstat (limited to 'sc/source/ui/dbgui/pvfundlg.cxx')
-rw-r--r--sc/source/ui/dbgui/pvfundlg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx
index 0bcca91ff5ef..c60169414bfb 100644
--- a/sc/source/ui/dbgui/pvfundlg.cxx
+++ b/sc/source/ui/dbgui/pvfundlg.cxx
@@ -282,11 +282,11 @@ void ScDPFunctionDlg::Init( const ScDPLabelData& rLabelData, const ScPivotFuncDa
OUString aSelectedEntry;
for( ScDPLabelDataVector::const_iterator aIt = mrLabelVec.begin(), aEnd = mrLabelVec.end(); aIt != aEnd; ++aIt )
{
- mpLbBaseField->InsertEntry(aIt->getDisplayName());
+ mpLbBaseField->InsertEntry((*aIt)->getDisplayName());
maBaseFieldNameMap.insert(
- NameMapType::value_type(aIt->getDisplayName(), aIt->maName));
- if (aIt->maName == rFuncData.maFieldRef.ReferenceField)
- aSelectedEntry = aIt->getDisplayName();
+ NameMapType::value_type((*aIt)->getDisplayName(), (*aIt)->maName));
+ if ((*aIt)->maName == rFuncData.maFieldRef.ReferenceField)
+ aSelectedEntry = (*aIt)->getDisplayName();
}
// base item list box
@@ -402,7 +402,7 @@ IMPL_LINK_TYPED( ScDPFunctionDlg, SelectHdl, ListBox&, rLBox, void )
size_t nBasePos = mpLbBaseField->GetSelectEntryPos();
if( nBasePos < mrLabelVec.size() )
{
- const vector<ScDPLabelData::Member>& rMembers = mrLabelVec[nBasePos].maMembers;
+ const vector<ScDPLabelData::Member>& rMembers = mrLabelVec[nBasePos]->maMembers;
mbEmptyItem = lclFillListBox(*mpLbBaseItem, rMembers, SC_BASEITEM_USER_POS);
// build cache for base names.
NameMapType aMap;