summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java')
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java
index f17b70980c63..2007455fc594 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java
@@ -123,14 +123,12 @@ public class SvxUnoTextField extends TestCase {
// create testobject here
try {
- XText the_Text = (XText) UnoRuntime.queryInterface(XText.class,oShape);
- XMultiServiceFactory oDocMSF = (XMultiServiceFactory)
- UnoRuntime.queryInterface( XMultiServiceFactory.class, xDrawDoc );
+ XText the_Text = UnoRuntime.queryInterface(XText.class,oShape);
+ XMultiServiceFactory oDocMSF = UnoRuntime.queryInterface( XMultiServiceFactory.class, xDrawDoc );
the_Cursor = the_Text.createTextCursor();
oObj = (XInterface)
oDocMSF.createInstance( "com.sun.star.text.TextField.DateTime" );
- XTextContent the_Field = (XTextContent)
- UnoRuntime.queryInterface(XTextContent.class,oObj);
+ XTextContent the_Field = UnoRuntime.queryInterface(XTextContent.class,oObj);
the_Text.insertTextContent(the_Cursor,the_Field,false);