diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java index 1d1fdd35c134..28ae5ef1df05 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java @@ -74,8 +74,7 @@ public class ScStyleFamiliesObj extends TestCase { */ protected void cleanup( TestParameters tParam, PrintWriter log ) { log.println( " disposing xSheetDoc " ); - XComponent oComp = (XComponent) - UnoRuntime.queryInterface (XComponent.class, xSpreadsheetDoc) ; + XComponent oComp = UnoRuntime.queryInterface (XComponent.class, xSpreadsheetDoc) ; util.DesktopTools.closeDoc(oComp); } @@ -98,9 +97,8 @@ public class ScStyleFamiliesObj extends TestCase { XNameAccess oStyleFamilies=null; // create testobject here log.println("getting style families"); - XStyleFamiliesSupplier oStyleFamiliesSupplier =(XStyleFamiliesSupplier) - UnoRuntime.queryInterface( - XStyleFamiliesSupplier.class, xSpreadsheetDoc); + XStyleFamiliesSupplier oStyleFamiliesSupplier =UnoRuntime.queryInterface( + XStyleFamiliesSupplier.class, xSpreadsheetDoc); oStyleFamilies = oStyleFamiliesSupplier.getStyleFamilies(); |