summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/appluno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-11 14:57:10 +0200
committerNoel Grandin <noel@peralex.com>2015-12-12 06:51:56 +0200
commit0bcef149ce3785306271fa06184eb62950b62087 (patch)
tree72d69380e36371f09f181a2727a2908846bf099d /sc/source/ui/unoobj/appluno.cxx
parenta3d6d9e4466f9a3d6d2c34bb8f372a5265583573 (diff)
tdf#96339 fix bug in sort list
this bug was caused by commit 2aacf6c2cd82322b953988ff30d3bc997ae76d7b "sc: boost::ptr_vector->std::vector" Since the code in question likes passing around a pointer to the element of the vector, convert to using std::vector<std::unique_ptr> Change-Id: I9e9676fe7c2dc32e23ba6708aaea1f16c1bf2ff8
Diffstat (limited to 'sc/source/ui/unoobj/appluno.cxx')
-rw-r--r--sc/source/ui/unoobj/appluno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index c1d847d4008d..b597272f0d06 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -356,12 +356,12 @@ void SAL_CALL ScSpreadsheetSettings::setPropertyValue(
pUserList->clear(); // alle Eintraege raus
sal_uInt16 nCount = (sal_uInt16)aSeq.getLength();
- pUserList->reserve(nCount);
const OUString* pAry = aSeq.getConstArray();
for (sal_uInt16 i=0; i<nCount; i++)
{
OUString aEntry = pAry[i];
- pUserList->push_back( ScUserListData(aEntry) );
+ ScUserListData* pData = new ScUserListData(aEntry);
+ pUserList->push_back(pData);
}
bSaveApp = true; // Liste wird mit den App-Optionen gespeichert
}