From 1459f127711ba11e0ce044d9fb70d1941b5c3209 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 Nov 2015 09:07:48 +0200 Subject: framework: boost::ptr_vector->std::vector Change-Id: I10801343e65646b92eb0a6256cd7bfbf5c84c854 --- framework/source/xml/imagesdocumenthandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/source/xml') diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index 89c3513c9fb2..0ba98b3d353d 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -510,7 +510,7 @@ void SAL_CALL OReadImagesDocumentHandler::endElement(const OUString& aName) if ( m_pImages ) { if ( m_aImageList.pImageList ) - m_aImageList.pImageList->push_back( m_pImages ); + m_aImageList.pImageList->push_back( std::unique_ptr(m_pImages) ); m_pImages = nullptr; } m_bImagesStartFound = false; @@ -642,7 +642,7 @@ void OWriteImagesDocumentHandler::WriteImagesDocument() throw for ( size_t i = 0; i < m_aImageListsItems.pImageList->size(); i++ ) { - const ImageListItemDescriptor* pImageItems = &(*pImageList)[i]; + const ImageListItemDescriptor* pImageItems = (*pImageList)[i].get(); WriteImageList( pImageItems ); } } -- cgit