summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-04 13:16:37 +0200
committerNoel Grandin <noel@peralex.com>2014-08-04 13:38:30 +0200
commitf493555623fb36bb51e78a4630483271ed36afe7 (patch)
treeddd107373aafbcbdd3f31a1fd5f4e53e7c073f59 /chart2/qa
parentcebdd852165cd3080a4eee885dceadcc41173ef3 (diff)
java: remove some casting in lib.TestParameters#getMSF
where the return value is always cast to XMultiServiceFactory, so just do the cast in the method and avoid noise at the call sites. Change-Id: I3a2e06ac6edb3c6021eda6442032db57aaa22e13
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/TestCaseOldAPI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 083f63580d8c..4e02f35d114d 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -947,7 +947,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
{
XComponentLoader aLoader = UnoRuntime.queryInterface(
XComponentLoader.class,
- ((XMultiServiceFactory)param.getMSF()).createInstance( "com.sun.star.frame.Desktop" ) );
+ param.getMSF().createInstance( "com.sun.star.frame.Desktop" ) );
aResult = UnoRuntime.queryInterface(
XModel.class,
@@ -974,7 +974,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
{
aResult = UnoRuntime.queryInterface(
XModel.class,
- ((XMultiServiceFactory)param.getMSF()).createInstance( "com.sun.star.comp.chart2.ChartModel" ) );
+ param.getMSF().createInstance( "com.sun.star.comp.chart2.ChartModel" ) );
}
catch( Exception ex )
{