diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:12:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:12:15 +0100 |
commit | f9ff3e5d37cc5958d1e3e75cff291759fc9653d5 (patch) | |
tree | a274d72ae2a606a57b500132bb86192ea9e344de /uui/source/fltdlg.cxx | |
parent | 4fa3e47a853590100fa1bf8a14e5fea556cf0ef3 (diff) |
More loplugin:cstylecast: uui
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: I8d533ab0d456c3e8b661a785948d37bf2aaf0e1d
Diffstat (limited to 'uui/source/fltdlg.cxx')
-rw-r--r-- | uui/source/fltdlg.cxx | 4 |
1 files changed, 2 insertions, 2 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<int>(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<sal_Int32>(m_pDevice->GetTextWidth(sString)); } private: |