summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-05-11 15:01:11 +0300
committerTor Lillqvist <tml@collabora.com>2016-05-11 15:10:26 +0300
commitc994d59fe05a6b54d8821ac0db9efa9b87fe2e7e (patch)
treee0f97212326a1faf66c5eb32f49a1763beddcfb8 /vcl/unx
parent9b1febead3f026a53211de492fdb72d7ae89e2e4 (diff)
loplugin:implicitboolconversion
Silly fix for "Implicit conversion (IntegralCast) from 'bool' to 'gint8' (aka 'signed char')". The GLib TRUE is defined as !FALSE, thus it is a bool value, which the loplugin doesn't then like being assigned to a 'signed char'. Change-Id: I04ae41c0ff89adad8962954e04215026b5f79c4c
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/gtksalmenu.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 4145afaf3667..66f138df42f2 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -642,7 +642,7 @@ bool GtkSalMenu::TakeFocus()
//(given that we wnt to show it with no menus popped down)
GdkEvent *event = gdk_event_new(GDK_KEY_PRESS);
event->key.window = GDK_WINDOW(g_object_ref(gtk_widget_get_window(mpMenuBarWidget)));
- event->key.send_event = TRUE;
+ event->key.send_event = 1 /* TRUE */;
event->key.time = gtk_get_current_event_time();
event->key.state = 0;
event->key.keyval = 0;