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/basides1.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/basides1.cxx')
-rw-r--r-- | basctl/source/basicide/basides1.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 5d7420a3d00a..f1d41d3ce9f8 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -1067,9 +1067,9 @@ void Shell::SetCurWindow( BaseWindow* pNewWin, bool bUpdateTabBar, bool bRemembe if ( bUpdateTabBar ) { sal_uLong nKey = GetWindowId( pCurWin ); - if ( pCurWin && ( pTabBar->GetPagePos( (sal_uInt16)nKey ) == TAB_PAGE_NOTFOUND ) ) - pTabBar->InsertPage( (sal_uInt16)nKey, pCurWin->GetTitle() ); // has just been faded in - pTabBar->SetCurPageId( (sal_uInt16)nKey ); + if ( pCurWin && ( pTabBar->GetPagePos( static_cast<sal_uInt16>(nKey) ) == TAB_PAGE_NOTFOUND ) ) + pTabBar->InsertPage( static_cast<sal_uInt16>(nKey), pCurWin->GetTitle() ); // has just been faded in + pTabBar->SetCurPageId( static_cast<sal_uInt16>(nKey) ); } if ( pCurWin && pCurWin->IsSuspended() ) // if the window is shown in the case of an error... pCurWin->SetStatus( pCurWin->GetStatus() & ~BASWIN_SUSPENDED ); |