diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java index 6ff3902346f1..d069c9f42b56 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java @@ -127,8 +127,7 @@ public class ScSheetLinksObj extends TestCase { com.sun.star.sheet.SheetLinkMode.VALUE); // Getting links. - XPropertySet docProps = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); + XPropertySet docProps = UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); Object links = null; try { @@ -141,7 +140,7 @@ public class ScSheetLinksObj extends TestCase { throw new StatusException("Couldn't get SheetLinks", e); } - oObj = (XInterface)UnoRuntime.queryInterface(XInterface.class, links); + oObj = UnoRuntime.queryInterface(XInterface.class, links); log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); |