summaryrefslogtreecommitdiff
path: root/lotuswordpro/inc/xfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-01 11:18:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-05 07:33:57 +0100
commitc0c42c56159d1d1185702cb0c400e460727dc168 (patch)
tree8852f4b342357ca277e1cf2f93e0f7f551ed6591 /lotuswordpro/inc/xfilter
parentb7d4573b5c217cd5d32723092911c654452b554d (diff)
loplugin:useuniqueptr in XFDrawStyle
Change-Id: I91ade5500596765480940b82807504e5c3fafedb Reviewed-on: https://gerrit.libreoffice.org/50749 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/inc/xfilter')
-rw-r--r--lotuswordpro/inc/xfilter/xfdrawstyle.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lotuswordpro/inc/xfilter/xfdrawstyle.hxx b/lotuswordpro/inc/xfilter/xfdrawstyle.hxx
index e6ea960100ca..e5a596a201ba 100644
--- a/lotuswordpro/inc/xfilter/xfdrawstyle.hxx
+++ b/lotuswordpro/inc/xfilter/xfdrawstyle.hxx
@@ -63,6 +63,7 @@
#include <xfilter/xfstyle.hxx>
#include <xfilter/xfcolor.hxx>
#include <cassert>
+#include <memory>
class XFDrawLineStyle;
class XFDrawAreaStyle;
@@ -120,7 +121,7 @@ public:
virtual void ToXml(IXFStream *pStrm) override;
private:
- XFFontWorkStyle* m_pFontWorkStyle;
+ std::unique_ptr<XFFontWorkStyle> m_pFontWorkStyle;
enumXFWrap m_eWrap;
XFDrawLineStyle *m_pLineStyle;
XFDrawAreaStyle *m_pAreaStyle;