From 6436302f40252bc6619e304e2051115fee902e20 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 26 Oct 2020 14:17:32 +0200 Subject: convert some more long -> tools::Long grepping for stuff in template params this time Change-Id: Ia37bfd85480b3a72c3c465489581d56ad8dde851 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104855 Tested-by: Jenkins Reviewed-by: Noel Grandin --- filter/source/graphicfilter/ieps/ieps.cxx | 4 ++-- filter/source/svg/svgwriter.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'filter') diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx index 010d984d3eb0..0873bf9cff75 100644 --- a/filter/source/graphicfilter/ieps/ieps.cxx +++ b/filter/source/graphicfilter/ieps/ieps.cxx @@ -96,8 +96,8 @@ static tools::Long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount) nSecurityCount = 1; // error parsing the bounding box values else if ( bValid ) { - const bool bFail = o3tl::checked_multiply(nRetValue, 10, nRetValue) || - o3tl::checked_add(nRetValue, *rBuf - '0', nRetValue); + const bool bFail = o3tl::checked_multiply(nRetValue, 10, nRetValue) || + o3tl::checked_add(nRetValue, *rBuf - '0', nRetValue); if (bFail) return 0; } diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index f92204ac3442..7d5ac70e1a0c 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -2714,7 +2714,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const OUString& rText, return; tools::Polygon aPoly( 4 ); - const tools::Long nLineHeight = std::max( FRound( aMetric.GetLineHeight() * 0.05 ), 1 ); + const tools::Long nLineHeight = std::max( FRound( aMetric.GetLineHeight() * 0.05 ), 1 ); if( rFont.GetStrikeout() ) { -- cgit