summaryrefslogtreecommitdiff
path: root/sw/source/core/attr/format.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 13:21:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 20:40:37 +0100
commit9b8013b20d20a3946146d5287e8d8f8b9ddf694d (patch)
tree7bcfb26045aad3dc0f54dfaba4cd08d619a12a47 /sw/source/core/attr/format.cxx
parent3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (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/attr/format.cxx')
-rw-r--r--sw/source/core/attr/format.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index 3a707437f2f9..ac03070f20d0 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -774,7 +774,7 @@ void SwFormat::GetGrabBagItem(uno::Any& rVal) const
void SwFormat::SetGrabBagItem(const uno::Any& rVal)
{
if (!m_pGrabBagItem.get())
- m_pGrabBagItem.reset(new SfxGrabBagItem);
+ m_pGrabBagItem = std::make_shared<SfxGrabBagItem>();
m_pGrabBagItem->PutValue(rVal, 0);
}