summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-25 08:47:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-25 08:47:58 +0100
commitfcf5192a54fa148110c51229913547f2521cff50 (patch)
tree4f07a409a5c1407410eae10b7e503d428a83f24e
parent4943ee042ac487bc9be4477fed7effa8ea9f74d4 (diff)
loplugin:implicitboolconversion
Change-Id: Ic7e42f50adf85266ae6b61cf152c99081be11d4a
-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 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