diff options
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 6 | ||||
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 2 |
2 files changed, 4 insertions, 4 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(); diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 6fba3b703a6b..143a1d51b5f0 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -825,7 +825,7 @@ class PPTNumberFormatCreator protected: - PPTNumberFormatCreator( PPTExtParaProv* ); + PPTNumberFormatCreator( std::unique_ptr<PPTExtParaProv> ); ~PPTNumberFormatCreator(); public: |