summaryrefslogtreecommitdiff
path: root/include/svx/xexch.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 13:04:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 06:10:36 +0000
commit0b272cdf0025ce4bca31ee01c8b3aaca042dcb62 (patch)
treee5d3ec93289598ebfe0121e7a3d0c880c3054844 /include/svx/xexch.hxx
parent570d8dab6d6754ab8020cbe6624020dff7b8b624 (diff)
new loplugin: useuniqueptr: svx
Change-Id: I0eb3d43d7bcfc491df16a72997a0720a6aec2c5c Reviewed-on: https://gerrit.libreoffice.org/32959 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/xexch.hxx')
-rw-r--r--include/svx/xexch.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/svx/xexch.hxx b/include/svx/xexch.hxx
index 10844c9be5fe..4722a6ce8621 100644
--- a/include/svx/xexch.hxx
+++ b/include/svx/xexch.hxx
@@ -22,6 +22,7 @@
#include <svx/svxdllapi.h>
+#include <memory>
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Clipboard format for XOutDev filling attributes
@@ -35,8 +36,8 @@ class SvStream;
class SVX_DLLPUBLIC XFillExchangeData final
{
private:
- XFillAttrSetItem* pXFillAttrSetItem;
- SfxItemPool* pPool;
+ std::unique_ptr<XFillAttrSetItem> pXFillAttrSetItem;
+ SfxItemPool* pPool;
public:
XFillExchangeData(const XFillAttrSetItem& rXFillAttrSetItem);
@@ -47,7 +48,7 @@ public:
SVX_DLLPUBLIC friend SvStream& WriteXFillExchangeData( SvStream& rOStm, const XFillExchangeData& rXFillExchangeData );
SVX_DLLPUBLIC friend SvStream& ReadXFillExchangeData( SvStream& rIStm, XFillExchangeData& rXFillExchangeData );
- XFillAttrSetItem* GetXFillAttrSetItem() { return pXFillAttrSetItem; }
+ XFillAttrSetItem* GetXFillAttrSetItem() { return pXFillAttrSetItem.get(); }
};
#endif // INCLUDED_SVX_XEXCH_HXX