diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java index 2123d3581479..766d1eb07839 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java @@ -98,7 +98,7 @@ public class UnoControlPatternField extends TestCase { XControlModel the_Model2 = aShape2.getControl(); //Try to query XControlAccess - XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( + XControlAccess the_access = UnoRuntime.queryInterface( XControlAccess.class, xTextDoc.getCurrentController()); @@ -132,7 +132,7 @@ public class UnoControlPatternField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); @@ -141,7 +141,7 @@ public class UnoControlPatternField extends TestCase { // Adding relation for XTextListener ifc.awt._XTextListener.TestTextListener listener = new ifc.awt._XTextListener.TestTextListener(); - XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface( + XTextComponent textComp = UnoRuntime.queryInterface( XTextComponent.class, oObj); textComp.addTextListener(listener); tEnv.addObjRelation("TestTextListener", listener); |