summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-01 17:17:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-01 15:22:48 +0000
commit2d1e026e7a148761d30db77c57f36cceff3d327d (patch)
treeaecef4cbb25c9be6848073b215a807b24b088891 /unotest
parent53b9a9bc7c84738545b5c7b791cea1e3d6a16c72 (diff)
unotest: the assigned value is never used
Change-Id: I73c4945dec1db4c206948f27ba3d19fa08eedd46 Reviewed-on: https://gerrit.libreoffice.org/11742 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/java/org/openoffice/test/OfficeConnection.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/unotest/source/java/org/openoffice/test/OfficeConnection.java b/unotest/source/java/org/openoffice/test/OfficeConnection.java
index 0c6ed329b58f..6cc00d199f24 100644
--- a/unotest/source/java/org/openoffice/test/OfficeConnection.java
+++ b/unotest/source/java/org/openoffice/test/OfficeConnection.java
@@ -106,7 +106,6 @@ public final class OfficeConnection {
boolean cleanTermination = false;
int code = 0;
try {
- boolean desktopTerminated = true;
if (process != null) {
if (context != null) {
XDesktop desktop = null;
@@ -125,7 +124,7 @@ public final class OfficeConnection {
context = null;
if (desktop != null) {
try {
- desktopTerminated = desktop.terminate();
+ boolean desktopTerminated = desktop.terminate();
if (!desktopTerminated) {
// in case terminate() fails we would wait
// forever for the process to die, so kill it