summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 10:58:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:52:28 +0100
commit12726ee86f9f6e1a03f0be0b2b3ade07a5402d01 (patch)
tree93392089b62fe1f4d010d43534fde29160f98745 /include/editeng
parentcf4ee7b872a67fa91bbbaa18a8effde71d6523c9 (diff)
loplugin:useuniqueptr in OFlowChainedText
Change-Id: I63f6242a41eddd36b9ebbef470faf9e5111b19f1 Reviewed-on: https://gerrit.libreoffice.org/49149 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/overflowingtxt.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx
index 0a84fd5f5e3a..19bf287995d5 100644
--- a/include/editeng/overflowingtxt.hxx
+++ b/include/editeng/overflowingtxt.hxx
@@ -25,6 +25,7 @@
#include <editeng/editdata.hxx>
#include <com/sun/star/uno/Reference.h>
+#include <memory>
namespace com { namespace sun { namespace star {
namespace datatransfer {
@@ -115,8 +116,8 @@ public:
bool IsLastParaInterrupted() const;
private:
- NonOverflowingText *mpNonOverflowingTxt;
- OverflowingText *mpOverflowingTxt;
+ std::unique_ptr<NonOverflowingText> mpNonOverflowingTxt;
+ std::unique_ptr<OverflowingText> mpOverflowingTxt;
bool mbIsDeepMerge;
};