From 6c9cae12f63ed2e48c7167782c13c6721990f393 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Jan 2018 10:56:15 +0200 Subject: loplugin:useuniqueptr in TextRanger Change-Id: I176da69a399eab0169c5fdddd454912672a92fba Reviewed-on: https://gerrit.libreoffice.org/49267 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/txtrange.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 #include #include +#include namespace tools { class PolyPolygon; } namespace tools { class Rectangle; } @@ -43,9 +44,9 @@ class EDITENG_DLLPUBLIC TextRanger RangeCache(const Range& rng) : range(rng) {}; }; std::deque mRangeCache; //!< Cached range calculations. - tools::PolyPolygon *mpPolyPolygon; // Surface polygon - tools::PolyPolygon *mpLinePolyPolygon; // Line polygon - tools::Rectangle *pBound; // Comprehensive rectangle + std::unique_ptr mpPolyPolygon; // Surface polygon + std::unique_ptr mpLinePolyPolygon; // Line polygon + std::unique_ptr pBound; // Comprehensive rectangle sal_uInt16 nCacheSize; // Cache-Size sal_uInt16 nRight; // Distance Contour-Text sal_uInt16 nLeft; // Distance Text-Contour -- cgit