diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:30:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:30:10 +0100 |
commit | b72102d15286004ce47c2a4d7203ac42bc33bdd1 (patch) | |
tree | 34a6c2a7b8ac8e2852b4bdbba20cc38be51a5cc4 /accessibility/source/standard/vclxaccessiblestatusbar.cxx | |
parent | 420ba81517f48df61ab66f5377795a5568d1f47c (diff) |
More loplugin:cstylecast: accessibility
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: I4c85e1362fbe5edf50ebf75955e272b4f6f162e2
Diffstat (limited to 'accessibility/source/standard/vclxaccessiblestatusbar.cxx')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblestatusbar.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx index 05281f20189a..3e7169a2d864 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx @@ -52,7 +52,7 @@ VCLXAccessibleStatusBar::~VCLXAccessibleStatusBar() void VCLXAccessibleStatusBar::UpdateShowing( sal_Int32 i, bool bShowing ) { - if ( i >= 0 && i < (sal_Int32)m_aAccessibleChildren.size() ) + if ( i >= 0 && i < static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) { Reference< XAccessible > xChild( m_aAccessibleChildren[i] ); if ( xChild.is() ) @@ -67,7 +67,7 @@ void VCLXAccessibleStatusBar::UpdateShowing( sal_Int32 i, bool bShowing ) void VCLXAccessibleStatusBar::UpdateItemName( sal_Int32 i ) { - if ( i >= 0 && i < (sal_Int32)m_aAccessibleChildren.size() ) + if ( i >= 0 && i < static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) { Reference< XAccessible > xChild( m_aAccessibleChildren[i] ); if ( xChild.is() ) @@ -85,7 +85,7 @@ void VCLXAccessibleStatusBar::UpdateItemName( sal_Int32 i ) void VCLXAccessibleStatusBar::UpdateItemText( sal_Int32 i ) { - if ( i >= 0 && i < (sal_Int32)m_aAccessibleChildren.size() ) + if ( i >= 0 && i < static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) { Reference< XAccessible > xChild( m_aAccessibleChildren[i] ); if ( xChild.is() ) @@ -103,7 +103,7 @@ void VCLXAccessibleStatusBar::UpdateItemText( sal_Int32 i ) void VCLXAccessibleStatusBar::InsertChild( sal_Int32 i ) { - if ( i >= 0 && i <= (sal_Int32)m_aAccessibleChildren.size() ) + if ( i >= 0 && i <= static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) { // insert entry in child list m_aAccessibleChildren.insert( m_aAccessibleChildren.begin() + i, Reference< XAccessible >() ); @@ -122,7 +122,7 @@ void VCLXAccessibleStatusBar::InsertChild( sal_Int32 i ) void VCLXAccessibleStatusBar::RemoveChild( sal_Int32 i ) { - if ( i >= 0 && i < (sal_Int32)m_aAccessibleChildren.size() ) + if ( i >= 0 && i < static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) { // get the accessible of the removed page Reference< XAccessible > xChild( m_aAccessibleChildren[i] ); @@ -153,7 +153,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind { if ( m_pStatusBar ) { - sal_uInt16 nItemId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData()); + sal_uInt16 nItemId = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData())); sal_uInt16 nItemPos = m_pStatusBar->GetItemPos( nItemId ); InsertChild( nItemPos ); } @@ -163,7 +163,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind { if ( m_pStatusBar ) { - sal_uInt16 nItemId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData()); + sal_uInt16 nItemId = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData())); for ( sal_Int32 i = 0, nCount = getAccessibleChildCount(); i < nCount; ++i ) { Reference< XAccessible > xChild( getAccessibleChild( i ) ); @@ -191,7 +191,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind { if ( m_pStatusBar ) { - sal_uInt16 nItemId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData()); + sal_uInt16 nItemId = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData())); sal_uInt16 nItemPos = m_pStatusBar->GetItemPos( nItemId ); UpdateShowing( nItemPos, rVclWindowEvent.GetId() == VclEventId::StatusbarShowItem ); } @@ -201,7 +201,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind { if ( m_pStatusBar ) { - sal_uInt16 nItemId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData()); + sal_uInt16 nItemId = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData())); sal_uInt16 nItemPos = m_pStatusBar->GetItemPos( nItemId ); UpdateItemName( nItemPos ); } @@ -211,7 +211,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind { if ( m_pStatusBar ) { - sal_uInt16 nItemId = (sal_uInt16)reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData()); + sal_uInt16 nItemId = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(rVclWindowEvent.GetData())); sal_uInt16 nItemPos = m_pStatusBar->GetItemPos( nItemId ); UpdateItemText( nItemPos ); } @@ -303,7 +303,7 @@ Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleChild( sal_Int32 { if ( m_pStatusBar ) { - sal_uInt16 nItemId = m_pStatusBar->GetItemId( (sal_uInt16)i ); + sal_uInt16 nItemId = m_pStatusBar->GetItemId( static_cast<sal_uInt16>(i) ); xChild = new VCLXAccessibleStatusBarItem( m_pStatusBar, nItemId ); @@ -328,7 +328,7 @@ Reference< XAccessible > VCLXAccessibleStatusBar::getAccessibleAtPoint( const aw { sal_uInt16 nItemId = m_pStatusBar->GetItemId( VCLPoint( rPoint ) ); sal_Int32 nItemPos = m_pStatusBar->GetItemPos( nItemId ); - if ( nItemPos >= 0 && nItemPos < (sal_Int32)m_aAccessibleChildren.size() ) + if ( nItemPos >= 0 && nItemPos < static_cast<sal_Int32>(m_aAccessibleChildren.size()) ) xChild = getAccessibleChild( nItemPos ); } |