diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 12:51:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-11 13:11:06 +0000 |
commit | 549efd7f82d9da621294d496e43420c95e9bf500 (patch) | |
tree | 2a9a7471afdbd987759057ad377835c8f084279a /lotuswordpro/source/filter/xfilter/xftablestyle.cxx | |
parent | 28a0737f8c21e5c9f789af328348e51b6044c28c (diff) |
new loplugin: useuniqueptr: lotuswordpro
Change-Id: I1f9569cb5ca05faf12663b3df8508d10a8cd75e6
Reviewed-on: https://gerrit.libreoffice.org/32957
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/source/filter/xfilter/xftablestyle.cxx')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xftablestyle.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx index 04a84439c3d8..0a4ae26c65c7 100644 --- a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx @@ -68,14 +68,11 @@ XFTableStyle::XFTableStyle() XFTableStyle::~XFTableStyle() { - delete m_pBGImage; } void XFTableStyle::SetBackImage(XFBGImage *pImage) { - delete m_pBGImage; - - m_pBGImage = pImage; + m_pBGImage.reset( pImage ); } enumXFStyle XFTableStyle::GetStyleFamily() |