summaryrefslogtreecommitdiff
path: root/include/basegfx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:29:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:29:32 +0100
commita82b177f981f14582d88e819ce8c167f9db0c213 (patch)
treea655f381b94fce2f00bd43ddeb18d57750e099b5 /include/basegfx
parent6070aaa47d6cede11f8cc0b54ed726fc45cb4a74 (diff)
More loplugin:cstylecast: basegfx
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: Ifa4a6643b41525c962cd6af5776e1bf10bddb71c
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/raster/rasterconvert3d.hxx2
-rw-r--r--include/basegfx/utils/rectcliptools.hxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/basegfx/raster/rasterconvert3d.hxx b/include/basegfx/raster/rasterconvert3d.hxx
index 090258b3681a..75d578029104 100644
--- a/include/basegfx/raster/rasterconvert3d.hxx
+++ b/include/basegfx/raster/rasterconvert3d.hxx
@@ -366,7 +366,7 @@ namespace basegfx
void incrementRasterConversionLineEntry3D(sal_uInt32 nStep, InterpolatorProvider3D& rProvider)
{
- const double fStep((double)nStep);
+ const double fStep(static_cast<double>(nStep));
maX.increment(fStep);
maZ.increment(fStep);
mnY += nStep;
diff --git a/include/basegfx/utils/rectcliptools.hxx b/include/basegfx/utils/rectcliptools.hxx
index 5ad90cb6ed81..9df75ef91bca 100644
--- a/include/basegfx/utils/rectcliptools.hxx
+++ b/include/basegfx/utils/rectcliptools.hxx
@@ -30,10 +30,10 @@ namespace basegfx
{
namespace RectClipFlags
{
- static const sal_uInt32 LEFT = (sal_Int32)0x01;
- static const sal_uInt32 RIGHT = (sal_Int32)0x02;
- static const sal_uInt32 TOP = (sal_Int32)0x04;
- static const sal_uInt32 BOTTOM = (sal_Int32)0x08;
+ static const sal_uInt32 LEFT = sal_Int32(0x01);
+ static const sal_uInt32 RIGHT = sal_Int32(0x02);
+ static const sal_uInt32 TOP = sal_Int32(0x04);
+ static const sal_uInt32 BOTTOM = sal_Int32(0x08);
}
/** Calc clip mask for Cohen-Sutherland rectangle clip