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>
This commit is contained in:
committed by
Noel Grandin
parent
53b9a9bc7c
commit
2d1e026e7a
@@ -106,7 +106,6 @@ public final class OfficeConnection {
|
|||||||
boolean cleanTermination = false;
|
boolean cleanTermination = false;
|
||||||
int code = 0;
|
int code = 0;
|
||||||
try {
|
try {
|
||||||
boolean desktopTerminated = true;
|
|
||||||
if (process != null) {
|
if (process != null) {
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
XDesktop desktop = null;
|
XDesktop desktop = null;
|
||||||
@@ -125,7 +124,7 @@ public final class OfficeConnection {
|
|||||||
context = null;
|
context = null;
|
||||||
if (desktop != null) {
|
if (desktop != null) {
|
||||||
try {
|
try {
|
||||||
desktopTerminated = desktop.terminate();
|
boolean desktopTerminated = desktop.terminate();
|
||||||
if (!desktopTerminated) {
|
if (!desktopTerminated) {
|
||||||
// in case terminate() fails we would wait
|
// in case terminate() fails we would wait
|
||||||
// forever for the process to die, so kill it
|
// forever for the process to die, so kill it
|
||||||
|
Reference in New Issue
Block a user