summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
index f26c9e7b9a28..580b7b95c260 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
@@ -121,8 +121,7 @@ public class SwXHeadFootText extends TestCase {
XStyle StdStyle = null;
log.println( "creating a test environment" );
- XStyleFamiliesSupplier StyleFam = (XStyleFamiliesSupplier)
- UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xTextDoc);
+ XStyleFamiliesSupplier StyleFam = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xTextDoc);
XNameAccess StyleFamNames = StyleFam.getStyleFamilies();
// obtains style 'Standatd' from style family 'PageStyles'
@@ -152,7 +151,7 @@ public class SwXHeadFootText extends TestCase {
log.println( "Switching on footer" );
PropSet.setPropertyValue("FooterIsOn", new Boolean(true));
log.println( "Get header text" );
- oObj = (XText) UnoRuntime.queryInterface(
+ oObj = UnoRuntime.queryInterface(
XText.class, PropSet.getPropertyValue("HeaderText"));
} catch ( com.sun.star.lang.WrappedTargetException e ) {
e.printStackTrace(log);