summaryrefslogtreecommitdiff
path: root/svx/source/dialog/framelink.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 13:21:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-25 07:06:20 +0100
commita258a043c90eaaa4f6a411318e239e805d087d0c (patch)
tree250eed3d964d3872e02d0d9622ede8b3343ce7ef /svx/source/dialog/framelink.cxx
parentcee62b1068775b7d0bcd2875e9789c8c36c22057 (diff)
loplugin:makeshared in svl..svx
Change-Id: I067ea2f3cb651fdc5c3d1a09b0c55583618b9d1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87355 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog/framelink.cxx')
-rw-r--r--svx/source/dialog/framelink.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx
index dd6d410532bf..21eea0663987 100644
--- a/svx/source/dialog/framelink.cxx
+++ b/svx/source/dialog/framelink.cxx
@@ -34,7 +34,7 @@ void Style::implEnsureImplStyle()
{
if(!maImplStyle)
{
- maImplStyle.reset(new implStyle());
+ maImplStyle = std::make_shared<implStyle>();
}
}
@@ -44,7 +44,7 @@ Style::Style() :
}
Style::Style( double nP, double nD, double nS, SvxBorderLineStyle nType, double fScale ) :
- maImplStyle(new implStyle())
+ maImplStyle(std::make_shared<implStyle>())
{
maImplStyle->mnType = nType;
maImplStyle->mfPatternScale = fScale;
@@ -52,7 +52,7 @@ Style::Style( double nP, double nD, double nS, SvxBorderLineStyle nType, double
}
Style::Style( const Color& rColorPrim, const Color& rColorSecn, const Color& rColorGap, bool bUseGapColor, double nP, double nD, double nS, SvxBorderLineStyle nType, double fScale ) :
- maImplStyle(new implStyle())
+ maImplStyle(std::make_shared<implStyle>())
{
maImplStyle->mnType = nType;
maImplStyle->mfPatternScale = fScale;
@@ -64,7 +64,7 @@ Style::Style( const editeng::SvxBorderLine* pBorder, double fScale ) :
{
if(nullptr != pBorder)
{
- maImplStyle.reset(new implStyle());
+ maImplStyle = std::make_shared<implStyle>();
maImplStyle->mfPatternScale = fScale;
Set( pBorder, fScale );
}