summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
index a719d404da41..81e0522d290e 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
@@ -66,7 +66,7 @@ public class ScAutoFormatsObj extends TestCase{
* Creates Spreadsheet document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a Spreadsheet document" );
@@ -114,7 +114,7 @@ public class ScAutoFormatsObj extends TestCase{
XComponent xComp = UnoRuntime.queryInterface
(XComponent.class, xSheetDoc);
oObj = (XInterface) AnyConverter.toObject(
- new Type(XInterface.class),((XMultiServiceFactory)Param.getMSF()).createInstance
+ new Type(XInterface.class),Param.getMSF().createInstance
("com.sun.star.sheet.TableAutoFormats"));
Object secondInstance = SOF.createInstance
(xComp, "com.sun.star.sheet.TableAutoFormat");