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 /vcl/source/outdev | |
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 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/nativecontrols.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 91c52398c7ec..d7e0ecaf50af 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1476,7 +1476,7 @@ void OutputDevice::SetFontCollectionFromSVData() void OutputDevice::ResetNewFontCache() { - mxFontCache.reset(new ImplFontCache{}); + mxFontCache = std::make_shared<ImplFontCache>(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx index 51d4f2882ccc..847cbeb39aa9 100644 --- a/vcl/source/outdev/nativecontrols.cxx +++ b/vcl/source/outdev/nativecontrols.cxx @@ -268,7 +268,7 @@ static std::shared_ptr< ImplControlValue > TransformControlValue( const ImplCont } break; case ControlType::Generic: - aResult.reset( new ImplControlValue( rVal ) ); + aResult = std::make_shared<ImplControlValue>( rVal ); break; case ControlType::MenuPopup: { |