diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 08:30:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 09:04:45 +0100 |
commit | 6b4fe3e44b4daa89fef6a3385919b00472eaed60 (patch) | |
tree | db2d11ae4e08d0782e1eb240513abfbe8ff33113 /editeng/source | |
parent | e975ab34daf72a2b708a46095994d0df3c23dec0 (diff) |
loplugin:makeshared in drawinglayer..fpicker
Change-Id: Ib20fec3a7b6bfe2f94c6f5f2f9fa0be6f7c21e97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87320
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/eerdll.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/eerdll.cxx b/editeng/source/editeng/eerdll.cxx index c2fda0f6c0cf..095c3d51eb05 100644 --- a/editeng/source/editeng/eerdll.cxx +++ b/editeng/source/editeng/eerdll.cxx @@ -165,7 +165,7 @@ std::shared_ptr<DefItems> GlobalEditData::GetDefItems() auto xDefItems = m_xDefItems.lock(); if (!xDefItems) { - xDefItems.reset(new DefItems); + xDefItems = std::make_shared<DefItems>(); m_xDefItems = xDefItems; } return xDefItems; |