summaryrefslogtreecommitdiff
path: root/lotuswordpro/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-01 11:35:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-05 07:34:19 +0100
commit8683fbd30161ef9b7e6f28be339a63b092698896 (patch)
tree178c734f115c554d597eab265974290ea5c3de2b /lotuswordpro/inc
parent202aba9a07610b0f70e4daa13a2629f31dc29b62 (diff)
loplugin:useuniqueptr in XFParaStyle
Change-Id: I883c54698022d07dbcb72e66b1108178cf27a5ae Reviewed-on: https://gerrit.libreoffice.org/50751 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/inc')
-rw-r--r--lotuswordpro/inc/xfilter/xfparastyle.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/lotuswordpro/inc/xfilter/xfparastyle.hxx b/lotuswordpro/inc/xfilter/xfparastyle.hxx
index 2992a3bc0fa2..2efced099158 100644
--- a/lotuswordpro/inc/xfilter/xfparastyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfparastyle.hxx
@@ -77,6 +77,7 @@
#include <xfilter/xfdropcap.hxx>
#include <xfilter/xfstylecont.hxx>
#include <xfilter/xflineheight.hxx>
+#include <memory>
#define XFPARA_FLAG_FONT 0X00000001
#define XFPARA_FLAG_DROPCAP 0X00000002
@@ -231,8 +232,8 @@ protected:
XFStyleContainer m_aTabs;
rtl::Reference<XFFont> m_pFont;
XFShadow m_aShadow;
- XFBorders *m_pBorders;
- XFBGImage *m_pBGImage;
+ std::unique_ptr<XFBorders> m_pBorders;
+ std::unique_ptr<XFBGImage> m_pBGImage;
XFDropcap m_aDropcap;
XFLineHeight m_aLineHeight;
XFBreaks m_aBreaks;