diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java index d5898c53caec..f44ef7206b3d 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java @@ -105,7 +105,7 @@ public class SvxUnoTextContentEnum extends TestCase { (xDrawDoc,5000,3500,7500,5000,"Text"); DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape) ; - XSimpleText text = (XSimpleText) UnoRuntime.queryInterface + XSimpleText text = UnoRuntime.queryInterface (XSimpleText.class, oShape) ; XTextCursor cursor = text.createTextCursor() ; @@ -120,7 +120,7 @@ public class SvxUnoTextContentEnum extends TestCase { text.insertControlCharacter(cursor, ControlCharacter.PARAGRAPH_BREAK, false) ; - xEA = (XEnumerationAccess) UnoRuntime.queryInterface + xEA = UnoRuntime.queryInterface (XEnumerationAccess.class, text) ; oObj = xEA.createEnumeration() ; |