summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-14 11:19:11 +0200
committerNoel Grandin <noel@peralex.com>2015-10-14 12:05:49 +0200
commit8856d3069494ae16c6e261c4f3b604aebac28e31 (patch)
tree27b0e663fc9fa9d6a4783ddd144602b1164ecbed /qadevOOo
parent27336e23d49878ecd7e8d3fbc8c2114c0ebcbc2b (diff)
cid#1326672 DLS: Dead local store
Change-Id: I43bbad0c77022d999e0a10b10ca9f1e316ed7b9f
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java18
1 files changed, 4 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
index e5274bc9ca10..4cc3a16dc1c0 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
@@ -67,25 +67,15 @@ public class OQueryDesign extends TestCase {
log.println( "creating a test environment" );
- XInterface oObj = null;
-
XDispatchProvider aProv = UnoRuntime.queryInterface(XDispatchProvider.class,xDesk);
-
- XDispatch getting = null;
XMultiServiceFactory xMSF = Param.getMSF();
- XNameAccess xNameAccess = null;
-
// we use the first datasource
- XDataSource xDS = null;
- xNameAccess = UnoRuntime.queryInterface(
+ XNameAccess xNameAccess = UnoRuntime.queryInterface(
XNameAccess.class,
xMSF.createInstance("com.sun.star.sdb.DatabaseContext"));
- xDS = UnoRuntime.queryInterface(
+ XDataSource xDS = UnoRuntime.queryInterface(
XDataSource.class, xNameAccess.getByName( "Bibliography" ));
- xNameAccess = UnoRuntime.queryInterface(
- XNameAccess.class,
- xMSF.createInstance("com.sun.star.sdb.DatabaseContext"));
log.println("check XMultiServiceFactory");
@@ -94,7 +84,7 @@ public class OQueryDesign extends TestCase {
log.println( "opening QueryDesign" );
URL the_url = new URL();
the_url.Complete = ".component:DB/QueryDesign";
- getting = aProv.queryDispatch(the_url,"Query",12);
+ XDispatch getting = aProv.queryDispatch(the_url,"Query",12);
PropertyValue[] Args = new PropertyValue[2];
PropertyValue param1 = new PropertyValue();
param1.Name = "DataSourceName";
@@ -145,7 +135,7 @@ public class OQueryDesign extends TestCase {
params[2] = param3;
- oObj = xFrame.getController();
+ XInterface oObj = xFrame.getController();
TestEnvironment tEnv = new TestEnvironment(oObj);