Kaydet (Commit) 34b1a8c2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in PPTNumberFormatCreator

Change-Id: I6c2e155834d3c75807bee12b1ab03d575b6a8413
Reviewed-on: https://gerrit.libreoffice.org/59355
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7469e078
...@@ -3383,7 +3383,7 @@ PPTExtParaProv::~PPTExtParaProv() ...@@ -3383,7 +3383,7 @@ PPTExtParaProv::~PPTExtParaProv()
{ {
} }
PPTNumberFormatCreator::PPTNumberFormatCreator( PPTExtParaProv* pParaProv ) PPTNumberFormatCreator::PPTNumberFormatCreator( std::unique_ptr<PPTExtParaProv> pParaProv )
: nIsBullet(0) : nIsBullet(0)
, nBulletChar(0) , nBulletChar(0)
, nBulletFont(0) , nBulletFont(0)
...@@ -3391,7 +3391,7 @@ PPTNumberFormatCreator::PPTNumberFormatCreator( PPTExtParaProv* pParaProv ) ...@@ -3391,7 +3391,7 @@ PPTNumberFormatCreator::PPTNumberFormatCreator( PPTExtParaProv* pParaProv )
, nBulletColor(0) , nBulletColor(0)
, nTextOfs(0) , nTextOfs(0)
, nBulletOfs(0) , nBulletOfs(0)
, pExtParaProv(pParaProv) , pExtParaProv(std::move(pParaProv))
{ {
} }
...@@ -4075,7 +4075,7 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd ...@@ -4075,7 +4075,7 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd
const PPTTextParagraphStyleAtomInterpreter& rTxPFStyle, const PPTTextParagraphStyleAtomInterpreter& rTxPFStyle,
const PPTTextSpecInfo& rTextSpecInfo ) : const PPTTextSpecInfo& rTextSpecInfo ) :
PPTNumberFormatCreator ( new PPTExtParaProv( rManager, rIn, &rSlideHd ) ), PPTNumberFormatCreator ( o3tl::make_unique<PPTExtParaProv>( rManager, rIn, &rSlideHd ) ),
maTxSI ( rTextSpecInfo ) maTxSI ( rTextSpecInfo )
{ {
sal_uInt32 nOldFilePos = rIn.Tell(); sal_uInt32 nOldFilePos = rIn.Tell();
......
...@@ -825,7 +825,7 @@ class PPTNumberFormatCreator ...@@ -825,7 +825,7 @@ class PPTNumberFormatCreator
protected: protected:
PPTNumberFormatCreator( PPTExtParaProv* ); PPTNumberFormatCreator( std::unique_ptr<PPTExtParaProv> );
~PPTNumberFormatCreator(); ~PPTNumberFormatCreator();
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment