diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-04-12 13:22:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-12 14:55:42 +0200 |
commit | f6a1859704bf7f29d6cb55e37ac82affba9da1e5 (patch) | |
tree | baab8996efd790e1f1e862b3ab841bb0609560c4 /sw | |
parent | b0e1592bbbe5d25d65b834e7202b4e6cdee435a6 (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.cxx | 2 |
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 ) |