diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:21:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 20:40:37 +0100 |
commit | 9b8013b20d20a3946146d5287e8d8f8b9ddf694d (patch) | |
tree | 7bcfb26045aad3dc0f54dfaba4cd08d619a12a47 /sw/source/core/doc/number.cxx | |
parent | 3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (diff) |
loplugin:makeshared in sw
Change-Id: I6b297b84edda441c4ec6ea9f89ed553a50783bf5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87356
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/number.cxx')
-rw-r--r-- | sw/source/core/doc/number.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index 4ab6e48b3785..9fa258c5676f 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -1043,7 +1043,7 @@ void SwNumRule::GetGrabBagItem(uno::Any& rVal) const void SwNumRule::SetGrabBagItem(const uno::Any& rVal) { if (!mpGrabBagItem.get()) - mpGrabBagItem.reset(new SfxGrabBagItem); + mpGrabBagItem = std::make_shared<SfxGrabBagItem>(); mpGrabBagItem->PutValue(rVal, 0); } |