diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:26 +0100 |
commit | e235da515af0e2a5d5a0cf80773943b65fdb8f7b (patch) | |
tree | 07c725d43264d5a0b8742056bb179138c45696ae /writerfilter/source/rtftok/rtfdocumentimpl.cxx | |
parent | 115d39a27d29019640a7feb8e8d7da08509892b6 (diff) |
More loplugin:cstylecast: writerfilter
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: I94d069b3605b45de958c3541ff93d3ae70955ea3
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index b84e2eb81c4d..0474991024e4 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -795,7 +795,7 @@ void RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing::XS count--; if (!count) { - aStream.WriteChar((char)b); + aStream.WriteChar(static_cast<char>(b)); count = 2; b = 0; } @@ -963,11 +963,11 @@ void RTFDocumentImpl::resolvePict(bool const bInline, uno::Reference<drawing::XS nYExt = (m_aStates.top().aPicture.nGoalHeight ? m_aStates.top().aPicture.nGoalHeight : m_aStates.top().aPicture.nHeight); if (m_aStates.top().aPicture.nScaleX != 100) - nXExt = (((long)m_aStates.top().aPicture.nScaleX) + nXExt = (static_cast<long>(m_aStates.top().aPicture.nScaleX) * (nXExt - (m_aStates.top().aPicture.nCropL + m_aStates.top().aPicture.nCropR))) / 100L; if (m_aStates.top().aPicture.nScaleY != 100) - nYExt = (((long)m_aStates.top().aPicture.nScaleY) + nYExt = (static_cast<long>(m_aStates.top().aPicture.nScaleY) * (nYExt - (m_aStates.top().aPicture.nCropT + m_aStates.top().aPicture.nCropB))) / 100L; if (m_aStates.top().bInShape) @@ -2317,7 +2317,7 @@ RTFError RTFDocumentImpl::popState() count--; if (!count) { - aBuf.append((char)b); + aBuf.append(static_cast<char>(b)); count = 2; b = 0; } |