summaryrefslogtreecommitdiff
path: root/framework/source/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 14:13:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 11:31:40 +0000
commit70fed865df7655a7ee65fa6cde51bbf93182dbbb (patch)
tree00c77d8ba47be246cd247697045fdcfe6df3ad9e /framework/source/xml
parentfb4b59f9370167696d1a67beb16b593ba86971a8 (diff)
new loplugin: useuniqueptr: forms..framework
Change-Id: I4300a13f455148b7156ac3f444c7102d63ae6db3 Reviewed-on: https://gerrit.libreoffice.org/33164 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/xml')
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index f0b2a196e052..96ff940024ae 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -302,7 +302,7 @@ void SAL_CALL OReadImagesDocumentHandler::startElement(
}
if ( !m_pImages->pImageItemList )
- m_pImages->pImageItemList = new ImageItemListDescriptor;
+ m_pImages->pImageItemList.reset( new ImageItemListDescriptor );
m_bImageStartFound = true;
@@ -717,7 +717,7 @@ void OWriteImagesDocumentHandler::WriteImageList( const ImageListItemDescriptor*
m_xWriteDocumentHandler->startElement( ELEMENT_NS_IMAGES, xList );
m_xWriteDocumentHandler->ignorableWhitespace( OUString() );
- ImageItemListDescriptor* pImageItemList = pImageList->pImageItemList;
+ ImageItemListDescriptor* pImageItemList = pImageList->pImageItemList.get();
if ( pImageItemList )
{
for (std::unique_ptr<ImageItemDescriptor> & i : *pImageItemList)