diff options
Diffstat (limited to 'framework/source/xml')
-rw-r--r-- | framework/source/xml/imagesdocumenthandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index cc0278807052..327e666fde9d 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -197,7 +197,7 @@ void SAL_CALL OReadImagesDocumentHandler::startElement( } if ( !m_aImageList.pImageList ) - m_aImageList.pImageList = new ImageListDescriptor; + m_aImageList.pImageList.reset( new ImageListDescriptor ); m_bImagesStartFound = true; m_pImages = new ImageListItemDescriptor; @@ -511,7 +511,7 @@ void SAL_CALL OReadImagesDocumentHandler::endElement(const OUString& aName) if ( m_pExternalImages && !m_aImageList.pExternalImageList ) { if ( !m_aImageList.pExternalImageList ) - m_aImageList.pExternalImageList = m_pExternalImages; + m_aImageList.pExternalImageList.reset( m_pExternalImages ); } m_bExternalImagesStartFound = false; @@ -614,7 +614,7 @@ void OWriteImagesDocumentHandler::WriteImagesDocument() if ( m_aImageListsItems.pImageList ) { - ImageListDescriptor* pImageList = m_aImageListsItems.pImageList; + ImageListDescriptor* pImageList = m_aImageListsItems.pImageList.get(); for ( size_t i = 0; i < m_aImageListsItems.pImageList->size(); i++ ) { @@ -625,7 +625,7 @@ void OWriteImagesDocumentHandler::WriteImagesDocument() if ( m_aImageListsItems.pExternalImageList ) { - WriteExternalImageList( m_aImageListsItems.pExternalImageList ); + WriteExternalImageList( m_aImageListsItems.pExternalImageList.get() ); } m_xWriteDocumentHandler->ignorableWhitespace( OUString() ); |