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/source/standard/accessiblemenubasecomponent.cxx | |
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/source/standard/accessiblemenubasecomponent.cxx')
-rw-r--r-- | accessibility/source/standard/accessiblemenubasecomponent.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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() ) |