diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 14:06:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:55:28 +0200 |
commit | d2d85921605415908c553e84db654628f9f0c0b1 (patch) | |
tree | 161816623c32febde1c62d524fa1ef0a20a1aeda /vcl/unx/gtk/a11y | |
parent | 26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (diff) |
loplugin:oncevar in vcl
Change-Id: I37a6dacda12e1c2910737d74aa344c7e2e195aeb
Reviewed-on: https://gerrit.libreoffice.org/39328
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index 7edc33726bae..117b02b7e145 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -526,8 +526,7 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven AtkObject *pChild = getObjFromAny( aEvent.NewValue ); if( pChild ) { - AtkStateType eExpandedState = ATK_STATE_EXPANDED; - atk_object_notify_state_change( pChild, eExpandedState, true ); + atk_object_notify_state_change( pChild, ATK_STATE_EXPANDED, true ); g_object_unref( pChild ); } break; @@ -538,8 +537,7 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven AtkObject *pChild = getObjFromAny( aEvent.NewValue ); if( pChild ) { - AtkStateType eExpandedState = ATK_STATE_EXPANDED; - atk_object_notify_state_change( pChild, eExpandedState, false ); + atk_object_notify_state_change( pChild, ATK_STATE_EXPANDED, false ); g_object_unref( pChild ); } break; |