diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-07 14:58:34 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-12 23:25:09 +0200 |
commit | 059f0fd3bd6977a9e29a32f5292262b14e8ff679 (patch) | |
tree | 0cda1cdf73c2f3cbbc83683b82489b1fa5e5b348 /framework/source/xml/imagesdocumenthandler.cxx | |
parent | 78a219e973d2528351f7b850e9b5f58bf37ff0cf (diff) |
Convert SV_DECL_PTRARR_DEL( ImageListDescriptor) to boost::ptr_vector
Change-Id: Iea01a7d7c01bb9da80ccae001157c60d6090348b
Diffstat (limited to 'framework/source/xml/imagesdocumenthandler.cxx')
-rw-r--r-- | framework/source/xml/imagesdocumenthandler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); } } |