summaryrefslogtreecommitdiff
path: root/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java')
-rw-r--r--scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
index faba9d79df12..3a6d946b4c98 100644
--- a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
+++ b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
@@ -86,7 +86,7 @@ public final class LocalOfficeImpl
Object object = null;
object = mComponentContext.getValueByName(STORAGE_MRG_SINGLETON);
XScriptStorageManager storageMgr;
- storageMgr = (XScriptStorageManager)UnoRuntime.queryInterface(
+ storageMgr = UnoRuntime.queryInterface(
XScriptStorageManager.class, object);
storageMgr.refreshScriptStorage(uri);
} catch (java.lang.Exception ex) {
@@ -128,13 +128,13 @@ System.out.println("*** LocalOfficeImpl.refreshStorage: DONE");
"uno:socket,host=localhost,port=" +
port +
";urp;StarOffice.ServiceManager");
- mComponentFactory = (XMultiComponentFactory)UnoRuntime.queryInterface(
+ mComponentFactory = UnoRuntime.queryInterface(
XMultiComponentFactory.class, object);
XPropertySet factoryProps;
- factoryProps = (XPropertySet)UnoRuntime.queryInterface(
+ factoryProps = UnoRuntime.queryInterface(
XPropertySet.class, mComponentFactory);
object = factoryProps.getPropertyValue("DefaultContext");
- mComponentContext = (XComponentContext)UnoRuntime.queryInterface(
+ mComponentContext = UnoRuntime.queryInterface(
XComponentContext.class, object);
}
}