summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
index 3fcbd3687ba8..64ef1bfbf3ab 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
@@ -111,14 +111,13 @@ public class SwXTextEmbeddedObject extends TestCase {
Object o = xMultiServiceFactory.createInstance("com.sun.star.text.TextEmbeddedObject" );
XTextContent xTextContent = UnoRuntime.queryInterface(XTextContent.class, o);
String sChartClassID = "12dcae26-281f-416f-a234-c3086127382e";
- XPropertySet xPropertySet = (XPropertySet)
- UnoRuntime.queryInterface(XPropertySet.class, xTextContent);
+ XPropertySet xPropertySet = UnoRuntime.queryInterface(XPropertySet.class, xTextContent);
xPropertySet.setPropertyValue( "CLSID", sChartClassID );
xTextDoc.getText().insertTextContent( xCursor, xTextContent, false );
}
catch(com.sun.star.uno.Exception e) {
- e.printStackTrace((java.io.PrintWriter)log);
+ e.printStackTrace(log);
}
XTextEmbeddedObjectsSupplier oTEOS = UnoRuntime.queryInterface(