summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/textline.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:10:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:10:40 +0100
commit55f07d4daa76503530d96b9c20b53c59bcd5bcf9 (patch)
tree7ad8a720341e38258dab12597d25616c3bff8807 /vcl/source/outdev/textline.cxx
parente235da515af0e2a5d5a0cf80773943b65fdb8f7b (diff)
More loplugin:cstylecast: vcl
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: I363c01a1ae9e863fca4fb4589829492d7280d711
Diffstat (limited to 'vcl/source/outdev/textline.cxx')
-rw-r--r--vcl/source/outdev/textline.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index e781a8a9a76e..862d979e020f 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -1006,7 +1006,7 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos )
long nDX = nEndX - nStartX;
double nO = atan2( -nEndY + nStartY, ((nDX == 0) ? 0.000000001 : nDX) );
nO /= F_PI1800;
- nOrientation = (short)nO;
+ nOrientation = static_cast<short>(nO);
aStartPt.RotateAround( nEndX, nEndY, -nOrientation );
}