From 751f4d4428339b508abb5ee3c1804e63f0cfd593 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Jul 2020 18:37:18 +0200 Subject: loplugin:constantparam Change-Id: Id5144e95ac0120b3125258cdde46e4f7f6e1690b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99109 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/outdev/text.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'vcl/source/outdev') 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 -- cgit v1.2.3