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
This commit is contained in:
Tor Lillqvist
2016-05-11 15:01:11 +03:00
parent 9b1febead3
commit c994d59fe0

View File

@@ -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;