diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:26:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:26:08 +0100 |
commit | f6e256c4825a6d7c9d7125a4100c10f8c4de750a (patch) | |
tree | afb3e2979708a202ea2a833cf47a978d35faeae4 /cui/source/dialogs/cuigaldlg.cxx | |
parent | d597bb77b271a0e9f2c3f4789517435f6b63f170 (diff) |
More loplugin:cstylecast: cui
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: I04b0e0c0268cbcc1c7e7ff2174c5125785e09a07
Diffstat (limited to 'cui/source/dialogs/cuigaldlg.cxx')
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index edd5e8ac8fe6..4784e68c83d6 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -171,7 +171,7 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL, ); mpBrowser->m_pLbxFound->InsertEntry( GetReducedString( aFoundURL, 50 ), - (sal_uInt16) mpBrowser->aFoundList.size() - 1 ); + static_cast<sal_uInt16>(mpBrowser->aFoundList.size()) - 1 ); } } } @@ -292,7 +292,7 @@ void TakeThread::execute() const sal_Int32 nPos = mpBrowser->bTakeAll ? i : mpBrowser->m_pLbxFound->GetSelectedEntryPos( i ); const INetURLObject aURL( mpBrowser->aFoundList[ nPos ]); - mrTakenList.push_back( (sal_uLong)nPos ); + mrTakenList.push_back( static_cast<sal_uLong>(nPos) ); { SolarMutexGuard aGuard; @@ -383,7 +383,7 @@ IMPL_LINK_NOARG(TakeProgress, CleanUpHdl, void*, void) // refill list box for( i = 0, nCount = aRemoveEntries.size(); i < nCount; ++i ) if( !aRemoveEntries[ i ] ) - aRemainingVector.push_back( pBrowser->m_pLbxFound->GetEntry( (sal_uInt16) i ) ); + aRemainingVector.push_back( pBrowser->m_pLbxFound->GetEntry( static_cast<sal_uInt16>(i) ) ); pBrowser->m_pLbxFound->Clear(); @@ -525,7 +525,7 @@ GalleryIdDialog::GalleryIdDialog( vcl::Window* pParent, GalleryTheme* _pThm ) GalleryTheme::InsertAllThemes(*m_pLbResName); - m_pLbResName->SelectEntryPos( (sal_uInt16) pThm->GetId() ); + m_pLbResName->SelectEntryPos( static_cast<sal_uInt16>(pThm->GetId()) ); m_pLbResName->GrabFocus(); m_pBtnOk->SetClickHdl( LINK( this, GalleryIdDialog, ClickOkHdl ) ); |