diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_pcr')
-rw-r--r-- | qadevOOo/tests/java/mod/_pcr/ObjectInspector.java | 4 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java index 0697b99e2d59..9717505efffe 100644 --- a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java +++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java @@ -132,7 +132,7 @@ public class ObjectInspector extends TestCase { XInterface oFrame = (XInterface) xMSF.createInstance("com.sun.star.frame.Frame"); - XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, oFrame); + XFrame xFrame = UnoRuntime.queryInterface(XFrame.class, oFrame); xFrame.setName("ObjectInspector"); xFrame.initialize(xWindow); @@ -187,7 +187,7 @@ public class ObjectInspector extends TestCase { XFrame existentInspector = null; - XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, StarDesktop); + XFrame xFrame = UnoRuntime.queryInterface(XFrame.class, StarDesktop); existentInspector = xFrame.findFrame( "ObjectInspector", 255 ); diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java index 84718294f536..92c2ef81e579 100644 --- a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java +++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java @@ -91,14 +91,14 @@ public class ObjectInspectorModel extends TestCase { XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - XPropertySet xMSFProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xMSF); + XPropertySet xMSFProp = UnoRuntime.queryInterface(XPropertySet.class, xMSF); XComponentContext xDefaultContext = null; try{ // Get the default context from the office server. Object oDefaultContext = xMSFProp.getPropertyValue("DefaultContext"); // Query for the interface XComponentContext. - xDefaultContext = (XComponentContext) UnoRuntime.queryInterface( + xDefaultContext = UnoRuntime.queryInterface( XComponentContext.class, oDefaultContext); } catch (UnknownPropertyException e){ @@ -148,7 +148,7 @@ public class ObjectInspectorModel extends TestCase { XFrame existentInspector = null; - XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, StarDesktop); + XFrame xFrame = UnoRuntime.queryInterface(XFrame.class, StarDesktop); existentInspector = xFrame.findFrame( "ObjectInspector", 255 ); |