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 3b9b634be40b..58c0510b30e8 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java
@@ -83,7 +83,7 @@ public class ScAutoFormatsObj extends TestCase{
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " disposing xSheetDoc " );
- XComponent oComp = (XComponent) UnoRuntime.queryInterface
+ XComponent oComp = UnoRuntime.queryInterface
(XComponent.class, xSheetDoc) ;
util.DesktopTools.closeDoc(oComp);
}
@@ -111,7 +111,7 @@ public class ScAutoFormatsObj extends TestCase{
try {
// creation of testobject here
// get AutoFormats
- XComponent xComp = (XComponent)UnoRuntime.queryInterface
+ XComponent xComp = UnoRuntime.queryInterface
(XComponent.class, xSheetDoc);
oObj = (XInterface) AnyConverter.toObject(
new Type(XInterface.class),((XMultiServiceFactory)Param.getMSF()).createInstance