From f9ff3e5d37cc5958d1e3e75cff291759fc9653d5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:12:15 +0100 Subject: More loplugin:cstylecast: uui auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I8d533ab0d456c3e8b661a785948d37bf2aaf0e1d --- uui/source/fltdlg.cxx | 4 ++-- uui/source/nameclashdlg.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx index 1885b4679af4..e904fcdadb68 100644 --- a/uui/source/fltdlg.cxx +++ b/uui/source/fltdlg.cxx @@ -142,7 +142,7 @@ bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem ) if( !sEntry.isEmpty() ) { int nPos = m_pLbFilters->GetSelectedEntryPos(); - if( nPos < (int)(m_pFilterNames->size()) ) + if( nPos < static_cast(m_pFilterNames->size()) ) { pSelectedItem = m_pFilterNames->begin(); pSelectedItem += nPos; @@ -174,7 +174,7 @@ class StringCalculator : public ::cppu::WeakImplHelper< css::util::XStringWidth sal_Int32 SAL_CALL queryStringWidth( const OUString& sString ) override { - return (sal_Int32)(m_pDevice->GetTextWidth(sString)); + return static_cast(m_pDevice->GetTextWidth(sString)); } private: diff --git a/uui/source/nameclashdlg.cxx b/uui/source/nameclashdlg.cxx index fcf7c375e092..8426086abbb8 100644 --- a/uui/source/nameclashdlg.cxx +++ b/uui/source/nameclashdlg.cxx @@ -28,10 +28,10 @@ IMPL_LINK( NameClashDialog, ButtonHdl_Impl, Button *, pBtn, void ) { - long nRet = (long) ABORT; + long nRet = long(ABORT); if ( m_pBtnRename == pBtn ) { - nRet = (long) RENAME; + nRet = long(RENAME); OUString aNewName = m_pEDNewName->GetText(); if ( ( aNewName == maNewName ) || aNewName.isEmpty() ) { @@ -42,7 +42,7 @@ IMPL_LINK( NameClashDialog, ButtonHdl_Impl, Button *, pBtn, void ) maNewName = aNewName; } else if ( m_pBtnOverwrite == pBtn ) - nRet = (long) OVERWRITE; + nRet = long(OVERWRITE); EndDialog( nRet ); } -- cgit v1.2.3