summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java')
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java
index 2beb29244e9d..679fd3d6f94b 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java
@@ -126,8 +126,7 @@ public class SdXCustomPresentation extends TestCase {
XCustomPresentationSupplier.class, xImpressDoc);
XInterface oObj = oPS.getCustomPresentations();
- XSingleServiceFactory oSingleMSF = (XSingleServiceFactory)
- UnoRuntime.queryInterface(XSingleServiceFactory.class, oObj);
+ XSingleServiceFactory oSingleMSF = UnoRuntime.queryInterface(XSingleServiceFactory.class, oObj);
XInterface oInstance = null;
try {
@@ -137,8 +136,7 @@ public class SdXCustomPresentation 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);
try {
aContainer.insertByName("FirstPresentation", oInstance);