diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXTextFrame.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXTextFrame.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java index 68ce266a1559..05127431b3a5 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java @@ -107,12 +107,12 @@ public class SwXTextFrame extends TestCase { log.println("inserting Frame1"); - XTextContent the_content = (XTextContent) UnoRuntime.queryInterface( + XTextContent the_content = UnoRuntime.queryInterface( XTextContent.class, oFrame1); oText.insertTextContent(oCursor, the_content, true); log.println("inserting Frame2"); - the_content = (XTextContent) UnoRuntime.queryInterface( + the_content = UnoRuntime.queryInterface( XTextContent.class, oFrame2); oText.insertTextContent(oCursor, the_content, true); @@ -134,7 +134,7 @@ public class SwXTextFrame extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("CONTENT", - (XTextContent) UnoRuntime.queryInterface( + UnoRuntime.queryInterface( XTextContent.class, instance)); tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor()); |