From c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:13:55 +0100 Subject: More loplugin:cstylecast: svx auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7 --- svx/source/sdr/attribute/sdrformtextattribute.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svx/source/sdr/attribute') diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx index e0801737d599..bc0d690edca0 100644 --- a/svx/source/sdr/attribute/sdrformtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx @@ -82,11 +82,11 @@ namespace if(bShadow) { - nRetval = (sal_uInt8)((rSet.Get(SDRATTR_SHADOWTRANSPARENCE).GetValue() * 255) / 100); + nRetval = static_cast((rSet.Get(SDRATTR_SHADOWTRANSPARENCE).GetValue() * 255) / 100); } else { - nRetval = (sal_uInt8)((rSet.Get(XATTR_LINETRANSPARENCE).GetValue() * 255) / 100); + nRetval = static_cast((rSet.Get(XATTR_LINETRANSPARENCE).GetValue() * 255) / 100); } return nRetval; @@ -113,7 +113,7 @@ namespace return drawinglayer::attribute::LineAttribute( aColorAttribute, - (double)nLineWidth, + static_cast(nLineWidth), impGetB2DLineJoin(eLineJoint), eLineCap); } @@ -131,7 +131,7 @@ namespace if(rDash.GetDots() || rDash.GetDashes()) { const sal_uInt32 nLineWidth = rSet.Get(XATTR_LINEWIDTH).GetValue(); - fFullDotDashLen = rDash.CreateDotDashArray(aDotDashArray, (double)nLineWidth); + fFullDotDashLen = rDash.CreateDotDashArray(aDotDashArray, static_cast(nLineWidth)); } } -- cgit