summaryrefslogtreecommitdiff
path: root/sw/source/core/text/pordrop.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-04 10:51:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-10 08:31:10 +0200
commit6b8a1a6fa77f910a2537958799bbdbac96e0bb57 (patch)
tree78755aa3e3aee4829d02b9f9e7b8e776da82bad3 /sw/source/core/text/pordrop.hxx
parent208f91edea145fd76ffd67f238079f11c4142082 (diff)
loplugin:useuniqueptr in SwDropPortion
Change-Id: I42381af772d545206fc7facb0b893f7a1c8625bf Reviewed-on: https://gerrit.libreoffice.org/57200 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/pordrop.hxx')
-rw-r--r--sw/source/core/text/pordrop.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/pordrop.hxx b/sw/source/core/text/pordrop.hxx
index 7d2293d17648..648ed03f4c38 100644
--- a/sw/source/core/text/pordrop.hxx
+++ b/sw/source/core/text/pordrop.hxx
@@ -61,7 +61,7 @@ public:
class SwDropPortion : public SwTextPortion
{
friend class SwDropCapCache;
- SwDropPortionPart* pPart; // due to script/attribute changes
+ std::unique_ptr<SwDropPortionPart> pPart; // due to script/attribute changes
sal_uInt16 nLines; // Line count
sal_uInt16 nDropHeight; // Height
sal_uInt16 nDropDescent; // Distance to the next line
@@ -91,8 +91,8 @@ public:
sal_uInt16 GetDropDescent() const { return nDropDescent; }
sal_uInt16 GetDropLeft() const { return Width() + nFix; }
- SwDropPortionPart* GetPart() const { return pPart; }
- void SetPart( SwDropPortionPart* pNew ) { pPart = pNew; }
+ SwDropPortionPart* GetPart() const { return pPart.get(); }
+ void SetPart( std::unique_ptr<SwDropPortionPart> pNew ) { pPart = std::move(pNew); }
void SetY( short nNew ) { nY = nNew; }