diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-21 10:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-21 10:12:01 +0200 |
commit | b19ac3c4c6b4a41a1f3acac68b299fd676428a87 (patch) | |
tree | 8118fee67c28847bc69ead176621d8e8554260e2 /accessibility/source/standard/vclxaccessiblestatusbar.cxx | |
parent | 7b65087eabf9bd233a899723f662665ee5867378 (diff) |
clang-tidy modernize-loop-convert in a*
Change-Id: If8eada464c6dc7350e50fc90eb27aa47bd90e198
Diffstat (limited to 'accessibility/source/standard/vclxaccessiblestatusbar.cxx')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblestatusbar.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx index 1ef43c54e266..25029fa85778 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx @@ -229,9 +229,9 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind m_pStatusBar = nullptr; // dispose all children - for ( size_t i = 0; i < m_aAccessibleChildren.size(); ++i ) + for (Reference<XAccessible>& i : m_aAccessibleChildren) { - Reference< XComponent > xComponent( m_aAccessibleChildren[i], UNO_QUERY ); + Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) xComponent->dispose(); } @@ -259,9 +259,9 @@ void VCLXAccessibleStatusBar::disposing() m_pStatusBar = nullptr; // dispose all children - for ( size_t i = 0; i < m_aAccessibleChildren.size(); ++i ) + for (Reference<XAccessible>& i : m_aAccessibleChildren) { - Reference< XComponent > xComponent( m_aAccessibleChildren[i], UNO_QUERY ); + Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) xComponent->dispose(); } |