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/baside2.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/baside2.cxx')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index ad26c8d3518e..a2415818def2 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -498,12 +498,12 @@ void ModulWindow::ToggleBreakPoint( sal_uLong nLine ) BreakPoint* pBrk = GetBreakPoints().FindBreakPoint( nLine ); if ( pBrk ) // remove { - m_xModule->ClearBP( (sal_uInt16)nLine ); + m_xModule->ClearBP( static_cast<sal_uInt16>(nLine) ); delete GetBreakPoints().remove( pBrk ); } else // create one { - if ( m_xModule->SetBP( (sal_uInt16)nLine) ) + if ( m_xModule->SetBP( static_cast<sal_uInt16>(nLine)) ) { GetBreakPoints().InsertSorted( new BreakPoint( nLine ) ); if ( StarBASIC::IsRunning() ) @@ -529,9 +529,9 @@ void ModulWindow::UpdateBreakPoint( const BreakPoint& rBrk ) CheckCompileBasic(); if ( rBrk.bEnabled ) - m_xModule->SetBP( (sal_uInt16)rBrk.nLine ); + m_xModule->SetBP( static_cast<sal_uInt16>(rBrk.nLine) ); else - m_xModule->ClearBP( (sal_uInt16)rBrk.nLine ); + m_xModule->ClearBP( static_cast<sal_uInt16>(rBrk.nLine) ); } } @@ -718,7 +718,7 @@ void ModulWindow::EditMacro( const OUString& rMacroName ) { long nMaxY = pView->GetTextEngine()->GetTextHeight() - nVisHeight; long nOldStartY = pView->GetStartDocPos().Y(); - long nNewStartY = (long)nStart * pView->GetTextEngine()->GetCharHeight(); + long nNewStartY = static_cast<long>(nStart) * pView->GetTextEngine()->GetCharHeight(); nNewStartY = std::min( nNewStartY, nMaxY ); pView->Scroll( 0, -(nNewStartY-nOldStartY) ); pView->ShowCursor( false ); |