diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:29:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:29:48 +0100 |
commit | e662242ec057ef5f922507866a88819e984fd131 (patch) | |
tree | f2c65bdb822a7da6eb1675c684825f69fbbefeca /basctl/source/basicide/linenumberwindow.cxx | |
parent | a82b177f981f14582d88e819ce8c167f9db0c213 (diff) |
More loplugin:cstylecast: basctl
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: I3bddf4b08e064dead05eae87619db2232744d7f8
Diffstat (limited to 'basctl/source/basicide/linenumberwindow.cxx')
-rw-r--r-- | basctl/source/basicide/linenumberwindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx index 0fe9517cbf98..257ac8fd1a8d 100644 --- a/basctl/source/basicide/linenumberwindow.cxx +++ b/basctl/source/basicide/linenumberwindow.cxx @@ -78,7 +78,7 @@ void LineNumberWindow::Paint( vcl::RenderContext& rRenderContext, const tools::R m_nWidth += m_nBaseWidth; } - sal_Int64 y = (nStartLine - 1) * (sal_Int64)nLineHeight; + sal_Int64 y = (nStartLine - 1) * static_cast<sal_Int64>(nLineHeight); for (sal_uInt32 n = nStartLine; n <= nEndLine; ++n, y += nLineHeight) rRenderContext.DrawText(Point(0, y - m_nCurYOffset), OUString::number(n)); } |