summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 10:56:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-06 10:36:09 +0100
commit6c9cae12f63ed2e48c7167782c13c6721990f393 (patch)
tree429eb7f6ec28b8537ac465902f726a975e2d42ef /include/editeng
parent1692bda118f234608ccec0697f9d7b6f6bd86b6d (diff)
loplugin:useuniqueptr in TextRanger
Change-Id: I176da69a399eab0169c5fdddd454912672a92fba Reviewed-on: https://gerrit.libreoffice.org/49267 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/txtrange.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/editeng/txtrange.hxx b/include/editeng/txtrange.hxx
index 3c857ad0e90f..4bc307466317 100644
--- a/include/editeng/txtrange.hxx
+++ b/include/editeng/txtrange.hxx
@@ -23,6 +23,7 @@
#include <editeng/editengdllapi.h>
#include <tools/gen.hxx>
#include <deque>
+#include <memory>
namespace tools { class PolyPolygon; }
namespace tools { class Rectangle; }
@@ -43,9 +44,9 @@ class EDITENG_DLLPUBLIC TextRanger
RangeCache(const Range& rng) : range(rng) {};
};
std::deque<RangeCache> mRangeCache; //!< Cached range calculations.
- tools::PolyPolygon *mpPolyPolygon; // Surface polygon
- tools::PolyPolygon *mpLinePolyPolygon; // Line polygon
- tools::Rectangle *pBound; // Comprehensive rectangle
+ std::unique_ptr<tools::PolyPolygon> mpPolyPolygon; // Surface polygon
+ std::unique_ptr<tools::PolyPolygon> mpLinePolyPolygon; // Line polygon
+ std::unique_ptr<tools::Rectangle> pBound; // Comprehensive rectangle
sal_uInt16 nCacheSize; // Cache-Size
sal_uInt16 nRight; // Distance Contour-Text
sal_uInt16 nLeft; // Distance Text-Contour