summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_svx/SvxUnoText.java
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 /qadevOOo/tests/java/mod/_svx/SvxUnoText.java
parentjava: remove some unused variables (diff)
downloadcore-f493555623fb36bb51e78a4630483271ed36afe7.tar.gz
core-f493555623fb36bb51e78a4630483271ed36afe7.zip
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 'qadevOOo/tests/java/mod/_svx/SvxUnoText.java')
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxUnoText.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java b/qadevOOo/tests/java/mod/_svx/SvxUnoText.java
index 810721aa3489..f8941b14c172 100644
--- a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java
+++ b/qadevOOo/tests/java/mod/_svx/SvxUnoText.java
@@ -58,7 +58,7 @@ public class SvxUnoText extends TestCase {
protected void initialize( TestParameters tParam, PrintWriter log ) {
try {
log.println( "creating a drawdoc" );
- xDrawDoc = DrawTools.createDrawDoc((XMultiServiceFactory)tParam.getMSF());
+ xDrawDoc = DrawTools.createDrawDoc(tParam.getMSF());
} catch ( Exception e ) {
// Some exception occurs.FAILED
e.printStackTrace( log );
@@ -110,7 +110,7 @@ public class SvxUnoText extends TestCase {
XShape oShape = null;
try {
- SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF()) ;
+ SOfficeFactory SOF = SOfficeFactory.getFactory(tParam.getMSF()) ;
oShape = SOF.createShape
(xDrawDoc,5000,3500,7500,5000,"Text");
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);