summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-11 09:07:48 +0200
committerNoel Grandin <noel@peralex.com>2015-11-11 11:35:41 +0200
commit1459f127711ba11e0ce044d9fb70d1941b5c3209 (patch)
tree049d2c5bfeb8b38080970ad500e3f6fc94d8e981 /framework/source/uiconfiguration
parentaef8a59d51954f1858296ef23f70c8bd65c77c1c (diff)
framework: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I10801343e65646b92eb0a6256cd7bfbf5c84c854
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 973819430d71..b7f271a6d5f4 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -440,7 +440,7 @@ bool ImageManagerImpl::implts_loadUserImages(
if (( aUserImageListInfo.pImageList != nullptr ) &&
( !aUserImageListInfo.pImageList->empty() ))
{
- ImageListItemDescriptor* pList = &aUserImageListInfo.pImageList->front();
+ ImageListItemDescriptor* pList = aUserImageListInfo.pImageList->front().get();
sal_Int32 nCount = pList->pImageItemList->size();
std::vector< OUString > aUserImagesVector;
aUserImagesVector.reserve(nCount);
@@ -512,7 +512,7 @@ bool ImageManagerImpl::implts_storeUserImages(
aUserImageListInfo.pImageList = new ImageListDescriptor;
ImageListItemDescriptor* pList = new ImageListItemDescriptor;
- aUserImageListInfo.pImageList->push_back( pList );
+ aUserImageListInfo.pImageList->push_back( std::unique_ptr<ImageListItemDescriptor>(pList) );
pList->pImageItemList = new ImageItemListDescriptor;
for ( sal_uInt16 i=0; i < pImageList->GetImageCount(); i++ )