diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-23 09:08:33 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-23 10:30:31 +0000 |
commit | ada02981672ae74bbdf6c4e5606d78c9211b2317 (patch) | |
tree | d58d507e66abf09f0551890824b87c6433dbb7c7 /sw/qa | |
parent | 68b9fb0aaeff4aef41dfd6989491b522578ca079 (diff) |
Java cleanup - reduce use of global fields
This field does not need to be global, it is returned from the relevant
methods
Change-Id: Ic53eec4a699d6acc4410e71dde385e6a49ded745
Reviewed-on: https://gerrit.libreoffice.org/3567
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/complex/accessibility/AccessibleRelationSet.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/complex/accessibility/AccessibleRelationSet.java b/sw/qa/complex/accessibility/AccessibleRelationSet.java index 286f005f074f..1e649784a7fa 100644 --- a/sw/qa/complex/accessibility/AccessibleRelationSet.java +++ b/sw/qa/complex/accessibility/AccessibleRelationSet.java @@ -174,11 +174,11 @@ public class AccessibleRelationSet { XWindow xWindow = at.getCurrentWindow(factory, aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); - at.getAccessibleObjectForRole(xRoot, AccessibleRole.DOCUMENT); + XAccessibleContext ctx = at.getAccessibleObjectForRole(xRoot, AccessibleRole.DOCUMENT); - para1 = at.SearchedContext.getAccessibleChild(0); - para2 = at.SearchedContext.getAccessibleChild(1); - para3 = at.SearchedContext.getAccessibleChild(2); + para1 = ctx.getAccessibleChild(0); + para2 = ctx.getAccessibleChild(1); + para3 = ctx.getAccessibleChild(2); } @After public void after() { |