diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java index 443bc69957b2..19c33c8f4273 100644 --- a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java +++ b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java @@ -78,12 +78,11 @@ public class RegistryTypeDescriptionProvider extends TestCase { try { XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); - XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface( + XPropertySet xProp = UnoRuntime.queryInterface( XPropertySet.class, xMSF); // get context - XComponentContext xContext = (XComponentContext) - UnoRuntime.queryInterface(XComponentContext.class, - xProp.getPropertyValue("DefaultContext")); + XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class, + xProp.getPropertyValue("DefaultContext")); // get the type description manager Object o = xContext.getValueByName("/singletons/" + "com.sun.star.reflection.theTypeDescriptionManager"); |