From fcf5192a54fa148110c51229913547f2521cff50 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 25 Feb 2016 08:47:58 +0100 Subject: [PATCH] loplugin:implicitboolconversion Change-Id: Ic7e42f50adf85266ae6b61cf152c99081be11d4a --- vcl/unx/gtk/gtksalmenu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx index ad7ddd91f863..92f32b948700 100644 --- a/vcl/unx/gtk/gtksalmenu.cxx +++ b/vcl/unx/gtk/gtksalmenu.cxx @@ -121,7 +121,7 @@ void RemoveDisabledItemsFromNativeMenu(GLOMenu* pMenu, GList** pOldCommandList, { gchar* pCommand = g_lo_menu_get_command_from_item_in_section(pMenu, nSection, nSectionItems); // remove disabled entries - bool bRemove = g_action_group_get_action_enabled(pActionGroup, pCommand) == FALSE; + bool bRemove = !g_action_group_get_action_enabled(pActionGroup, pCommand); if (!bRemove) { //also remove any empty submenus