summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 14:54:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-14 16:17:55 +0200
commit14471a694271777440c19916055d659337c0fb8d (patch)
tree50f889a9cee6caa123501a40a06d3b1a2030bf41 /bean
parente6b8be25a6fb5afbd1649489318a7a2d7ae62efa (diff)
loplugin:buriedassign in b*
Change-Id: Ic20f46105a30b54bc5a991b4070e6c8edb15376e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92189 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bean')
-rw-r--r--bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
index 36464626c1bc..069bb1ee050e 100644
--- a/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
+++ b/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c
@@ -90,8 +90,9 @@ SAL_DLLPUBLIC_EXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindo
if (!result)
ThrowException(env, "java/lang/RuntimeException", "JAWT_GetAWT failed");
- /* Get the drawing surface */
- if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
+ /* Get the drawing surface */
+ ds = awt.GetDrawingSurface(env, obj_this);
+ if (ds == NULL)
return 0L;
/* Lock the drawing surface */