diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 12:04:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:58:46 +0100 |
commit | d712ebc20dbe91875324ca424c3a06cdb4f83716 (patch) | |
tree | c70f7038976bd9a033a7d09295155a8f73333b58 /sd/source/filter/ppt | |
parent | a5e2555632a2105274d130ad115573be36f863b8 (diff) |
loplugin:makeshared in sd
Change-Id: I82ddb851759665f40e23f284cf6eed2b88722c6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87329
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/filter/ppt')
-rw-r--r-- | sd/source/filter/ppt/ppt97animations.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/ppt97animations.cxx b/sd/source/filter/ppt/ppt97animations.cxx index c26523c332cc..64312a026292 100644 --- a/sd/source/filter/ppt/ppt97animations.cxx +++ b/sd/source/filter/ppt/ppt97animations.cxx @@ -577,7 +577,7 @@ void Ppt97Animation::createAndSetCustomAnimationEffect( SdrObject* pObj ) //--------------start doing something //1. ------ create an effect from the presets ------ - ::sd::CustomAnimationEffectPtr pEffect( new ::sd::CustomAnimationEffect( pPreset->create( GetPresetSubType() ) ) ); + ::sd::CustomAnimationEffectPtr pEffect = std::make_shared<::sd::CustomAnimationEffect>( pPreset->create( GetPresetSubType() ) ); //2. ------ adapt the created effect ------ diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index cd1d62012a72..6aeb33182b31 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -2606,7 +2606,7 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rData, SvxMSD if ( SeekToRec( rSt, PPT_PST_AnimationInfoAtom, nHdRecEnd, &aHdAnimInfoAtom ) ) { // read data from stream - Ppt97AnimationPtr pAnimation( new Ppt97Animation( rSt ) ); + Ppt97AnimationPtr pAnimation = std::make_shared<Ppt97Animation>( rSt ); // store animation information if( pAnimation->HasEffect() ) { |