From 059f0fd3bd6977a9e29a32f5292262b14e8ff679 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 7 Jun 2012 14:58:34 +0200 Subject: Convert SV_DECL_PTRARR_DEL( ImageListDescriptor) to boost::ptr_vector Change-Id: Iea01a7d7c01bb9da80ccae001157c60d6090348b --- framework/source/xml/imagesdocumenthandler.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/source/xml/imagesdocumenthandler.cxx') diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index deade3d825d8..4eb19610c531 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -545,7 +545,7 @@ throw( SAXException, RuntimeException ) if ( m_pImages ) { if ( m_aImageList.pImageList ) - m_aImageList.pImageList->Insert( m_pImages, m_aImageList.pImageList->Count() ); + m_aImageList.pImageList->push_back( m_pImages ); m_pImages = NULL; } m_bImagesStartFound = sal_False; @@ -681,9 +681,9 @@ void OWriteImagesDocumentHandler::WriteImagesDocument() throw { ImageListDescriptor* pImageList = m_aImageListsItems.pImageList; - for ( sal_uInt16 i = 0; i < m_aImageListsItems.pImageList->Count(); i++ ) + for ( sal_uInt16 i = 0; i < m_aImageListsItems.pImageList->size(); i++ ) { - const ImageListItemDescriptor* pImageItems = (*pImageList)[i]; + const ImageListItemDescriptor* pImageItems = &(*pImageList)[i]; WriteImageList( pImageItems ); } } -- cgit