diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java b/qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java index 31bff2937c5d..5d2f34b07201 100644 --- a/qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java +++ b/qadevOOo/tests/java/mod/_servicemgr/uno/OServiceManager.java @@ -115,9 +115,9 @@ public class OServiceManager extends TestCase { } try { - XSet set = (XSet) UnoRuntime.queryInterface + XSet set = UnoRuntime.queryInterface (XSet.class, oInterface) ; - XSet set1 = (XSet) UnoRuntime.queryInterface + XSet set1 = UnoRuntime.queryInterface (XSet.class, srvMan) ; XEnumeration oEnum = set1.createEnumeration(); Object srv = oEnum.nextElement(); @@ -126,7 +126,7 @@ public class OServiceManager extends TestCase { newElement = oEnum.nextElement(); - XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface( + XPropertySet xProp = UnoRuntime.queryInterface( XPropertySet.class, oInterface); if (xProp != null) { xContext = (XComponentContext) AnyConverter.toObject( |