diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 15:09:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 19:27:56 +0200 |
commit | 16da5e2cc9add87aa44783af270f63de01e7ced4 (patch) | |
tree | 618685108d80e908e36176357260688ab9ba67b0 /accessibility | |
parent | c31fa068ad430746d47ce53e2321ac3302dcb8bb (diff) |
loplugin:constvars in accessibility..basegfx
Change-Id: Id6a0b48c3440be394419e87bd7a4f63bd0a1e758
Reviewed-on: https://gerrit.libreoffice.org/77721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
6 files changed, 14 insertions, 14 deletions
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx index 3cff71779326..cb0a0e8e80e9 100644 --- a/accessibility/source/extended/accessibletabbar.cxx +++ b/accessibility/source/extended/accessibletabbar.cxx @@ -173,7 +173,7 @@ namespace accessibility AccessibleTabBarBase::disposing(); // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index 2b2252944410..4f12b48422b8 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -58,7 +58,7 @@ namespace accessibility void AccessibleTabBarPageList::UpdateShowing( bool bShowing ) { - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -346,7 +346,7 @@ namespace accessibility AccessibleTabBarBase::disposing(); // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index 6f0df60870e2..fc1d5764f77d 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -227,7 +227,7 @@ void OAccessibleMenuBaseComponent::UpdateFocused( sal_Int32 i, bool bFocused ) void OAccessibleMenuBaseComponent::UpdateVisible() { SetVisible( IsVisible() ); - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -456,7 +456,7 @@ bool OAccessibleMenuBaseComponent::IsChildHighlighted() { bool bChildHighlighted = false; - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -606,7 +606,7 @@ void OAccessibleMenuBaseComponent::ProcessMenuEvent( const VclMenuEvent& rVclMen m_pMenu = nullptr; // dispose all menu items - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -650,7 +650,7 @@ void OAccessibleMenuBaseComponent::disposing() m_pMenu = nullptr; // dispose all menu items - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index b8f69c9506ef..af8d83ce9fe4 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -205,7 +205,7 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool bHasDropDownList) { sal_Int32 i=0; m_nCurSelectedPos = LISTBOX_ENTRY_NOTFOUND; - for ( auto& rChild : m_aAccessibleChildren ) + for ( const auto& rChild : m_aAccessibleChildren ) { Reference< XAccessible > xHold = rChild; if ( xHold.is() ) @@ -670,7 +670,7 @@ void VCLXAccessibleList::UpdateSelection_Impl(sal_Int32) { sal_Int32 i=0; m_nCurSelectedPos = LISTBOX_ENTRY_NOTFOUND; - for ( auto& rChild : m_aAccessibleChildren ) + for ( const auto& rChild : m_aAccessibleChildren ) { Reference< XAccessible > xHold = rChild; if ( xHold.is() ) diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx index 97e052253622..6dad3a0e5370 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx @@ -220,7 +220,7 @@ void VCLXAccessibleStatusBar::ProcessWindowEvent( const VclWindowEvent& rVclWind m_pStatusBar = nullptr; // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -250,7 +250,7 @@ void VCLXAccessibleStatusBar::disposing() m_pStatusBar = nullptr; // dispose all children - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx index bed8bb121be1..83a67b6a3571 100644 --- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx +++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx @@ -57,7 +57,7 @@ VCLXAccessibleTabControl::VCLXAccessibleTabControl( VCLXWindow* pVCLXWindow ) void VCLXAccessibleTabControl::UpdateFocused() { - for (Reference<XAccessible>& xChild : m_aAccessibleChildren) + for (const Reference<XAccessible>& xChild : m_aAccessibleChildren) { if ( xChild.is() ) { @@ -234,7 +234,7 @@ void VCLXAccessibleTabControl::ProcessWindowEvent( const VclWindowEvent& rVclWin m_pTabControl = nullptr; // dispose all tab pages - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) @@ -314,7 +314,7 @@ void VCLXAccessibleTabControl::disposing() m_pTabControl = nullptr; // dispose all tab pages - for (Reference<XAccessible>& i : m_aAccessibleChildren) + for (const Reference<XAccessible>& i : m_aAccessibleChildren) { Reference< XComponent > xComponent( i, UNO_QUERY ); if ( xComponent.is() ) |