summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-21 18:21:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-22 18:54:08 +0200
commit4c5e264df432f4e6836535cbac7231ab579af424 (patch)
tree2c56b71dbaf5f3c587b34b75f4d85d06014d76e6 /include/editeng
parent008f28c9e01114e731f785e9e238236a1ed069d2 (diff)
no need to use unique_ptr for PolyPolygon
it is already a COW type Change-Id: If28f67bff3f8df7763bf4b574b1125d568f0ee27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120821 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/txtrange.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/txtrange.hxx b/include/editeng/txtrange.hxx
index e6509291d388..ab6be6d283a2 100644
--- a/include/editeng/txtrange.hxx
+++ b/include/editeng/txtrange.hxx
@@ -42,7 +42,7 @@ class EDITENG_DLLPUBLIC TextRanger
};
std::deque<RangeCacheItem> mRangeCache; //!< Cached range calculations.
tools::PolyPolygon maPolyPolygon; // Surface polygon
- std::unique_ptr<tools::PolyPolygon> mpLinePolyPolygon; // Line polygon
+ std::optional<tools::PolyPolygon> mpLinePolyPolygon; // Line polygon
mutable std::optional<tools::Rectangle> mxBound; // Comprehensive rectangle
sal_uInt16 nCacheSize; // Cache-Size
sal_uInt16 nRight; // Distance Contour-Text