diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/TabController.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/TabController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/TabController.java b/qadevOOo/tests/java/mod/_toolkit/TabController.java index da98a08e2200..8730b99cd2e9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabController.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabController.java @@ -86,7 +86,7 @@ public class TabController extends TestCase { WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); XControlModel model = aShape.getControl(); - XControlAccess access = (XControlAccess) UnoRuntime.queryInterface( + XControlAccess access = UnoRuntime.queryInterface( XControlAccess.class, xTextDoc.getCurrentController()); @@ -108,10 +108,10 @@ public class TabController extends TestCase { e.printStackTrace(log); } - tabCtrlModel = (XTabControllerModel) UnoRuntime.queryInterface( + tabCtrlModel = UnoRuntime.queryInterface( XTabControllerModel.class, form); - aCtrlContainer = (XControlContainer) UnoRuntime.queryInterface( + aCtrlContainer = UnoRuntime.queryInterface( XControlContainer.class, xCtrl1.getContext()); // create object |