diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-20 11:22:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-21 12:10:29 +0200 |
commit | 34b1a8c2c75f32f0c352acb4f1fd9fd3c2ff00cb (patch) | |
tree | d1fd098ade534cf18ee99333dcf162e67b0cbca0 /filter | |
parent | 7469e078dc3a7a891bd7f5c44a693e4421d3bcdd (diff) |
loplugin:useuniqueptr in PPTNumberFormatCreator
Change-Id: I6c2e155834d3c75807bee12b1ab03d575b6a8413
Reviewed-on: https://gerrit.libreoffice.org/59355
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 8324da907f30..dee401a652da 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -3383,7 +3383,7 @@ PPTExtParaProv::~PPTExtParaProv() { } -PPTNumberFormatCreator::PPTNumberFormatCreator( PPTExtParaProv* pParaProv ) +PPTNumberFormatCreator::PPTNumberFormatCreator( std::unique_ptr<PPTExtParaProv> pParaProv ) : nIsBullet(0) , nBulletChar(0) , nBulletFont(0) @@ -3391,7 +3391,7 @@ PPTNumberFormatCreator::PPTNumberFormatCreator( PPTExtParaProv* pParaProv ) , nBulletColor(0) , nTextOfs(0) , nBulletOfs(0) - , pExtParaProv(pParaProv) + , pExtParaProv(std::move(pParaProv)) { } @@ -4075,7 +4075,7 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd const PPTTextParagraphStyleAtomInterpreter& rTxPFStyle, const PPTTextSpecInfo& rTextSpecInfo ) : - PPTNumberFormatCreator ( new PPTExtParaProv( rManager, rIn, &rSlideHd ) ), + PPTNumberFormatCreator ( o3tl::make_unique<PPTExtParaProv>( rManager, rIn, &rSlideHd ) ), maTxSI ( rTextSpecInfo ) { sal_uInt32 nOldFilePos = rIn.Tell(); |