diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java index c66e6671cbc0..bd77d4cabe99 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java @@ -87,10 +87,8 @@ public class SwXStyleFamilies extends TestCase { log.println( "Creating a test environment" ); - XTextDocument xArea = (XTextDocument) - UnoRuntime.queryInterface(XTextDocument.class, xTextDoc); - XStyleFamiliesSupplier oSFS = (XStyleFamiliesSupplier) - UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xArea); + XTextDocument xArea = UnoRuntime.queryInterface(XTextDocument.class, xTextDoc); + XStyleFamiliesSupplier oSFS = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, xArea); XNameAccess oSF = oSFS.getStyleFamilies(); TestEnvironment tEnv = new TestEnvironment(oSF); |