summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java')
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
index b0e10ade3ad5..e3a209ed1b07 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
@@ -125,8 +125,7 @@ public class SdXCustomPresentationAccess extends TestCase {
XInterface oObj = oPS.getCustomPresentations();
- XSingleServiceFactory oSingleMSF = (XSingleServiceFactory)
- UnoRuntime.queryInterface(XSingleServiceFactory.class, oObj);
+ XSingleServiceFactory oSingleMSF = UnoRuntime.queryInterface(XSingleServiceFactory.class, oObj);
XInterface oInstance = null;
XInterface oSecondInstance = null;
@@ -138,8 +137,7 @@ public class SdXCustomPresentationAccess extends TestCase {
throw new StatusException("Couldn't create instance", e);
}
- XNameContainer aContainer = (XNameContainer)
- UnoRuntime.queryInterface(XNameContainer.class, oObj);
+ XNameContainer aContainer = UnoRuntime.queryInterface(XNameContainer.class, oObj);
if (aContainer.hasByName("FirstPresentation")) {
try {