diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java index 9658c523cc7c..94cd1fc0a0d6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java @@ -138,8 +138,7 @@ public class ScSheetLinkObj extends TestCase { SL.link(sURL, "Sheet1", "", "", com.sun.star.sheet.SheetLinkMode.VALUE); // Getting links. - XPropertySet docProps = (XPropertySet) - UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); + XPropertySet docProps = UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc); Object oLinks = null; try { oLinks = docProps.getPropertyValue("SheetLinks"); @@ -151,8 +150,7 @@ public class ScSheetLinkObj extends TestCase { throw new StatusException("Couldn't get SheetLinks", e); } - XNameAccess links = (XNameAccess) - UnoRuntime.queryInterface(XNameAccess.class, oLinks); + XNameAccess links = UnoRuntime.queryInterface(XNameAccess.class, oLinks); String[] names = links.getElementNames(); |