summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/DummyXShape.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:28:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:28:26 +0100
commit898a8b00622d219741ec7649dbac560bc1f70f6b (patch)
tree56701de314ff3150fe3287ba4d02465a02dda2b6 /chart2/source/view/main/DummyXShape.cxx
parent56bd8bb862bf6bcb2242bc864be9abf56f0c092f (diff)
More loplugin:cstylecast: chart2
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: I745557506326b2b0ce66d0058ebf85e5ed2a0952
Diffstat (limited to 'chart2/source/view/main/DummyXShape.cxx')
-rw-r--r--chart2/source/view/main/DummyXShape.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index 61d956bfaf99..800f9cea2262 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -440,7 +440,7 @@ void DummyArea2D::render()
for(sal_Int32 j = 0; j < nPointsCount; j++)
{
const css::awt::Point& p = points[j];
- pChart->m_GLRender.SetArea2DShapePoint((float)p.X, (float)p.Y, nPointsCount);
+ pChart->m_GLRender.SetArea2DShapePoint(static_cast<float>(p.X), static_cast<float>(p.Y), nPointsCount);
}
}
@@ -598,7 +598,7 @@ void DummyLine2D::render()
sal_uInt8 B = (nColorValue & 0x000000FF);
pChart->m_GLRender.SetLine2DColor(R, G, B, nAlpha);
- SAL_INFO("chart2.opengl", "line colorvalue = " << nColorValue << ", R = " << (int)R << ", G = " << (int)G << ", B = " << (int)B);
+ SAL_INFO("chart2.opengl", "line colorvalue = " << nColorValue << ", R = " << static_cast<int>(R) << ", G = " << static_cast<int>(G) << ", B = " << static_cast<int>(B));
}
else
SAL_WARN("chart2.opengl", "no line color set");
@@ -624,7 +624,7 @@ void DummyLine2D::render()
for(sal_Int32 j = 0; j < pointscount; j++)
{
css::awt::Point& p = points[j];
- pChart->m_GLRender.SetLine2DShapePoint((float)p.X, (float)p.Y, pointscount);
+ pChart->m_GLRender.SetLine2DShapePoint(static_cast<float>(p.X), static_cast<float>(p.Y), pointscount);
}
}