diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java index 5b2746c216b7..bbadda64e346 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java @@ -76,8 +76,7 @@ public class ScHeaderFooterContentObj 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); } @@ -102,10 +101,9 @@ public class ScHeaderFooterContentObj extends TestCase { XNameAccess PageStyles = null; XStyle StdStyle = null; - XStyleFamiliesSupplier StyleFam = (XStyleFamiliesSupplier) - UnoRuntime.queryInterface( - XStyleFamiliesSupplier.class, - xSpreadsheetDoc ); + XStyleFamiliesSupplier StyleFam = UnoRuntime.queryInterface( + XStyleFamiliesSupplier.class, + xSpreadsheetDoc ); XNameAccess StyleFamNames = StyleFam.getStyleFamilies(); try{ PageStyles = (XNameAccess) AnyConverter.toObject( |