summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-04-12 13:22:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-12 14:55:42 +0200
commitf6a1859704bf7f29d6cb55e37ac82affba9da1e5 (patch)
treebaab8996efd790e1f1e862b3ab841bb0609560c4 /sw
parentb0e1592bbbe5d25d65b834e7202b4e6cdee435a6 (diff)
small cleanups in TextRanger
- no need for mpPolyPolygon to be allocated out of line. - expand out LongDqPtr typedef, not much longer and makes the code easier to read - allocate mpBound inline using std::optional - rename RangeCache to RangeCacheItem Change-Id: I55032a31eaefa844059edb5f0ee599f1b813ac80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92079 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/txtfly.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfly.cxx b/sw/source/core/text/txtfly.cxx
index ac0892f81bd3..a4d7b9c9d8d3 100644
--- a/sw/source/core/text/txtfly.cxx
+++ b/sw/source/core/text/txtfly.cxx
@@ -272,7 +272,7 @@ SwRect SwContourCache::ContourRect( const SwFormat* pFormat,
Range aRange( std::min( nTmpTop, nTmpBottom ), std::max( nTmpTop, nTmpBottom ) );
- LongDqPtr pTmp = mvItems[0].mxTextRanger->GetTextRanges( aRange );
+ std::deque<long>* pTmp = mvItems[0].mxTextRanger->GetTextRanges( aRange );
const size_t nCount = pTmp->size();
if( 0 != nCount )