diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java index 5748613a4b9f..57d7cb756dcf 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java @@ -83,7 +83,7 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest { Object inst = (XInterface)((XMultiServiceFactory)tParam.getMSF()).createInstance ("com.sun.star.frame.Desktop"); - desktop = (XDesktop) UnoRuntime.queryInterface + desktop = UnoRuntime.queryInterface (XDesktop.class, inst); } catch ( com.sun.star.uno.Exception e ) { // Some exception occures.FAILED @@ -166,7 +166,7 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest { try { Object inst = ((XMultiServiceFactory) tParam.getMSF()).createInstance ("com.sun.star.comp.framework.DispatchRecorder"); - recorder = (XDispatchRecorder) UnoRuntime.queryInterface + recorder = UnoRuntime.queryInterface (XDispatchRecorder.class, inst); oObj.setDispatchRecorder(recorder); } catch (com.sun.star.uno.Exception e) { @@ -178,11 +178,10 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest { Thread.sleep(500); } catch (InterruptedException ex) {} - XModel model = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); + XModel model = UnoRuntime.queryInterface(XModel.class, xTextDoc); XFrame fr = model.getCurrentController().getFrame(); - XDispatchProvider xDispProv = (XDispatchProvider) - UnoRuntime.queryInterface(XDispatchProvider.class, fr); + XDispatchProvider xDispProv = UnoRuntime.queryInterface(XDispatchProvider.class, fr); URL dispURL = utils.parseURL((XMultiServiceFactory) tParam.getMSF(), ".uno:InsertText"); |