diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:22:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 19:31:14 +0100 |
commit | 3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (patch) | |
tree | bd912f9c91d8f96969377168fab9e5c5cc59a895 /unotools | |
parent | 7589e8413411aa4e0bf437ec0a7080c577a9c1d9 (diff) |
loplugin:makeshared in svgio..writerperfect
Change-Id: I0f8de0f78c7a8fb78d47ee5dfed09019b4eb5288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87357
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/useroptions.cxx | 2 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx index f6a06747e78c..66f354ef5ae5 100644 --- a/unotools/source/config/useroptions.cxx +++ b/unotools/source/config/useroptions.cxx @@ -266,7 +266,7 @@ SvtUserOptions::SvtUserOptions () if (xSharedImpl.expired()) { - xImpl.reset(new Impl); + xImpl = std::make_shared<Impl>(); xSharedImpl = xImpl; ItemHolder1::holdConfigItem(EItem::UserOptions); } diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index cfccb4d91b33..f9ade49966e2 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -482,7 +482,7 @@ void LocaleDataWrapper::getSecondaryCalendarImpl() auto pCal = std::find_if(xCals.begin(), xCals.end(), [](const Calendar2& rCal) { return !rCal.Default; }); if (pCal != xCals.end()) - xSecondaryCalendar.reset( new Calendar2( *pCal)); + xSecondaryCalendar = std::make_shared<Calendar2>( *pCal); } bSecondaryCalendarValid = true; } @@ -531,7 +531,7 @@ void LocaleDataWrapper::getDefaultCalendarImpl() if (pCal == xCals.end()) pCal = xCals.begin(); } - xDefaultCalendar.reset( new Calendar2( *pCal)); + xDefaultCalendar = std::make_shared<Calendar2>( *pCal); } } |