summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 12:05:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 13:51:04 +0100
commita5e2555632a2105274d130ad115573be36f863b8 (patch)
tree0dff0804191f8754661090e42a9f97ca4a9c812f /sfx2/source/bastyp
parenteb862a9330f880f69459c1b9bc1892c98b250b6a (diff)
loplugin:makeshared in sfx2
Change-Id: I54492b9c9bb7aaf4aed4846c68ff3545695430f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87331 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index e83edf00f776..060dd47a3d9f 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -1018,7 +1018,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
std::shared_ptr<const SfxFilter> pFilter = bUpdate ? SfxFilter::GetFilterByName( sFilterName ) : nullptr;
if (!pFilter)
{
- pFilter.reset(new SfxFilter( sFilterName ,
+ pFilter = std::make_shared<SfxFilter>( sFilterName ,
sExtension ,
nFlags ,
nClipboardId ,
@@ -1026,7 +1026,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
sMimeType ,
sUserData ,
sServiceName ,
- bEnabled ));
+ bEnabled );
rList.push_back( pFilter );
}
else