summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-20 18:37:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-21 08:30:47 +0200
commit751f4d4428339b508abb5ee3c1804e63f0cfd593 (patch)
tree144a929607a00d7e64f78530797585d6be2b3a5f /vcl/source/outdev
parentbb7b0511bbb6d2237b7b765c31727324b4183a85 (diff)
loplugin:constantparam
Change-Id: Id5144e95ac0120b3125258cdde46e4f7f6e1690b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99109 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/text.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index b11e1e480503..c4c24439a84d 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -2408,14 +2408,14 @@ bool OutputDevice::GetTextOutlines( basegfx::B2DPolyPolygonVector& rVector,
bool OutputDevice::GetTextOutlines( PolyPolyVector& rResultVector,
const OUString& rStr, sal_Int32 nBase,
sal_Int32 nIndex, sal_Int32 nLen,
- sal_uLong nTWidth, const long* pDXArray ) const
+ sal_uLong nLayoutWidth, const long* pDXArray ) const
{
rResultVector.clear();
// get the basegfx polypolygon vector
basegfx::B2DPolyPolygonVector aB2DPolyPolyVector;
if( !GetTextOutlines( aB2DPolyPolyVector, rStr, nBase, nIndex, nLen,
- nTWidth, pDXArray ) )
+ nLayoutWidth, pDXArray ) )
return false;
// convert to a tool polypolygon vector
@@ -2426,16 +2426,14 @@ bool OutputDevice::GetTextOutlines( PolyPolyVector& rResultVector,
return true;
}
-bool OutputDevice::GetTextOutline( tools::PolyPolygon& rPolyPoly, const OUString& rStr,
- sal_Int32 nLen,
- sal_uLong nTWidth, const long* pDXArray ) const
+bool OutputDevice::GetTextOutline( tools::PolyPolygon& rPolyPoly, const OUString& rStr ) const
{
rPolyPoly.Clear();
// get the basegfx polypolygon vector
basegfx::B2DPolyPolygonVector aB2DPolyPolyVector;
- if( !GetTextOutlines( aB2DPolyPolyVector, rStr, 0/*nBase*/, 0/*nIndex*/, nLen,
- nTWidth, pDXArray ) )
+ if( !GetTextOutlines( aB2DPolyPolyVector, rStr, 0/*nBase*/, 0/*nIndex*/, /*nLen*/-1,
+ /*nLayoutWidth*/0, /*pDXArray*/nullptr ) )
return false;
// convert and merge into a tool polypolygon