diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/XMLImporter.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/XMLImporter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/XMLImporter.java b/qadevOOo/tests/java/mod/_sw/XMLImporter.java index f15fcda68848..c6707c59bf11 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLImporter.java @@ -112,7 +112,7 @@ public class XMLImporter extends TestCase { try { oObj = (XInterface) xMSF.createInstance ("com.sun.star.comp.Writer.XMLImporter"); - XImporter xIm = (XImporter) UnoRuntime.queryInterface + XImporter xIm = UnoRuntime.queryInterface (XImporter.class,oObj); xIm.setTargetDocument(xTextDoc); } catch (com.sun.star.uno.Exception e) { @@ -142,7 +142,7 @@ public class XMLImporter extends TestCase { tEnv.addObjRelation("TargetDocument",xTextDoc); log.println("Implementation Name: "+util.utils.getImplName(oObj)); - final XTextDocument textDoc = (XTextDocument) UnoRuntime.queryInterface + final XTextDocument textDoc = UnoRuntime.queryInterface (XTextDocument.class, xTextDoc) ; final PrintWriter fLog = log ; tEnv.addObjRelation("XDocumentHandler.ImportChecker", |