summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-14 16:41:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-15 11:02:53 +0200
commit4c4d9a482b93440fd3388ffa1715e66d1f391fea (patch)
treedc599ac00d6ca5c3288e4e7053c02c0d62902346 /vcl/unx/gtk/a11y
parent256480b8b80769149652bb62f401672ee8fafe1f (diff)
loplugin:sequentialassign in vcl
Change-Id: I530b81b3258a6e1c1456da53bfe1285f14aee712 Reviewed-on: https://gerrit.libreoffice.org/70734 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx3
-rw-r--r--vcl/unx/gtk/a11y/atklistener.cxx7
2 files changed, 3 insertions, 7 deletions
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index f79d1749dc2b..e904b12ac610 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.cxx
@@ -141,8 +141,7 @@ component_wrapper_ref_accessible_at_point (AtkComponent *component,
if( pComponent.is() )
{
- uno::Reference< accessibility::XAccessible > xAccessible;
- xAccessible = pComponent->getAccessibleAtPoint(
+ uno::Reference< accessibility::XAccessible > xAccessible = pComponent->getAccessibleAtPoint(
translatePoint( pComponent, x, y, coord_type ) );
return atk_object_wrapper_ref( xAccessible );
}
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 737a24b2312e..c30bc638bced 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -435,9 +435,7 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven
case accessibility::AccessibleEventId::INVALIDATE_ALL_CHILDREN:
{
- uno::Reference< accessibility::XAccessibleContext > xParent;
-
- xParent = getAccessibleContextFromSource(aEvent.Source);
+ uno::Reference< accessibility::XAccessibleContext > xParent = getAccessibleContextFromSource(aEvent.Source);
g_return_if_fail( xParent.is() );
handleInvalidateChildren(xParent);
@@ -716,8 +714,7 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven
case accessibility::AccessibleEventId::ROLE_CHANGED:
{
- uno::Reference< accessibility::XAccessibleContext > xContext;
- xContext = getAccessibleContextFromSource( aEvent.Source );
+ uno::Reference< accessibility::XAccessibleContext > xContext = getAccessibleContextFromSource( aEvent.Source );
atk_object_wrapper_set_role( mpWrapper, xContext->getAccessibleRole() );
break;
}