diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java index 6b4080dc651c..2b053a5c3e8c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java @@ -148,7 +148,7 @@ public class ScTableSheetObj extends TestCase { log.println(" disposing xSheetDoc "); try { - XCloseable oCloser = (XCloseable) UnoRuntime.queryInterface( + XCloseable oCloser = UnoRuntime.queryInterface( XCloseable.class, xSheetDoc); oCloser.close(true); } catch (com.sun.star.util.CloseVetoException e) { @@ -192,7 +192,7 @@ public class ScTableSheetObj extends TestCase { log.println("getting a sheet"); XSpreadsheet oSheet = null; - XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface( + XIndexAccess oIndexAccess = UnoRuntime.queryInterface( XIndexAccess.class, xSpreadsheets); try { @@ -250,7 +250,7 @@ public class ScTableSheetObj extends TestCase { tEnv.addObjRelation("XSheetLinkable.LinkSheet", "ScSheetLinksObj.ods"); //adding Scenario and with that a ScenarioSheet-Relation for Scenario and XScenarioEnhanced - XScenariosSupplier scene = (XScenariosSupplier) UnoRuntime.queryInterface( + XScenariosSupplier scene = UnoRuntime.queryInterface( XScenariosSupplier.class, tEnv.getTestObject()); scene.getScenarios() |