forked from amazingfate/loongoffice
Java cleanup, remove the rest of the unnecessary casts
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa Reviewed-on: https://gerrit.libreoffice.org/3432 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
This commit is contained in:
committed by
Fridrich Strba
parent
d62425cc27
commit
8d87758d65
@ -42,12 +42,11 @@ public class ScriptStorageManager extends TestCase {
|
||||
|
||||
try {
|
||||
XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF();
|
||||
XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(
|
||||
XPropertySet xProp = UnoRuntime.queryInterface(
|
||||
XPropertySet.class, xMSF);
|
||||
// get context
|
||||
XComponentContext xContext = (XComponentContext)
|
||||
UnoRuntime.queryInterface(XComponentContext.class,
|
||||
xProp.getPropertyValue("DefaultContext"));
|
||||
XComponentContext xContext = UnoRuntime.queryInterface(XComponentContext.class,
|
||||
xProp.getPropertyValue("DefaultContext"));
|
||||
// get the script storage manager from context
|
||||
oInterface = xContext.getValueByName("/singletons/" +
|
||||
"drafts.com.sun.star.script.framework.storage.theScriptStorageManager");
|
||||
|
||||
Reference in New Issue
Block a user