summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-16 09:12:25 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-16 09:15:00 +0200
commit6eb91bdf75fe0085584efa6abf955c14c7acb9fd (patch)
tree62151a190c9eed0116f3c34ed3f621aed36964b5 /vcl
parentf53fc22f04ccd799035acbec718c42176a4554c9 (diff)
loplugin:implicitboolconversion
Change-Id: I9edc0d2e478f83e39e93e70e6c05c77b0125aad0
Diffstat (limited to 'vcl')
-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 48520c28d052..204415564b96 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -848,7 +848,7 @@ bool GtkSalMenu::NativeSetItemCommand( unsigned nSection,
if ( aCurrentCommand == nullptr || g_strcmp0( aCurrentCommand, aCommand ) != 0 )
{
bool bOldHasSubmenu = g_lo_menu_get_submenu_from_item_in_section(pMenu, nSection, nItemPos) != nullptr;
- bSubMenuAddedOrRemoved = bOldHasSubmenu != bIsSubmenu;
+ bSubMenuAddedOrRemoved = static_cast<gboolean>(bOldHasSubmenu) != bIsSubmenu;
if (bSubMenuAddedOrRemoved)
{
//tdf#98636 its not good enough to unset the "submenu-action" attribute to change something