diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-17 13:09:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 06:58:44 +0000 |
commit | d96c114171dada05caffd9a50f870809ebd0c450 (patch) | |
tree | 2ef1572fce732c39557b3f2f944aef86f17aa703 /sdext/source | |
parent | starmath: Remove obsolete TG::Discarded (diff) | |
download | core-d96c114171dada05caffd9a50f870809ebd0c450.tar.gz core-d96c114171dada05caffd9a50f870809ebd0c450.zip |
clang-tidy modernize-make-shared
Change-Id: I3fa866bfb3093fc876474a9d9db29fe05dc2af3a
Reviewed-on: https://gerrit.libreoffice.org/25056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/presenter/PresenterHelpView.cxx | 4 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterTimer.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx index 12dac0864fa1..42ba18411179 100644 --- a/sdext/source/presenter/PresenterHelpView.cxx +++ b/sdext/source/presenter/PresenterHelpView.cxx @@ -382,8 +382,8 @@ void PresenterHelpView::ProcessString ( OUString sRightText; PresenterConfigurationAccess::GetProperty(rsProperties, "Right") >>= sRightText; mpTextContainer->push_back( - std::shared_ptr<Block>( - new Block(sLeftText, sRightText, mpFont->mxFont, mnMaximalWidth))); + std::make_shared<Block>( + sLeftText, sRightText, mpFont->mxFont, mnMaximalWidth)); } void PresenterHelpView::CheckFontSize() diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx index 6f46efd16914..329a3ffff097 100644 --- a/sdext/source/presenter/PresenterTimer.cxx +++ b/sdext/source/presenter/PresenterTimer.cxx @@ -174,7 +174,7 @@ SharedTimerTask TimerScheduler::CreateTimerTask ( const TimeValue& rDueTime, const sal_Int64 nRepeatIntervall) { - return SharedTimerTask(new TimerTask(rTask, rDueTime, nRepeatIntervall, ++mnTaskId)); + return std::make_shared<TimerTask>(rTask, rDueTime, nRepeatIntervall, ++mnTaskId); } void TimerScheduler::ScheduleTask (const SharedTimerTask& rpTask) |