loplugin:implicitboolconversion

Change-Id: I9edc0d2e478f83e39e93e70e6c05c77b0125aad0
This commit is contained in:
Tor Lillqvist
2016-03-16 09:12:25 +02:00
parent f53fc22f04
commit 6eb91bdf75

View File

@@ -848,7 +848,7 @@ bool GtkSalMenu::NativeSetItemCommand( unsigned nSection,
if ( aCurrentCommand == nullptr || g_strcmp0( aCurrentCommand, aCommand ) != 0 ) if ( aCurrentCommand == nullptr || g_strcmp0( aCurrentCommand, aCommand ) != 0 )
{ {
bool bOldHasSubmenu = g_lo_menu_get_submenu_from_item_in_section(pMenu, nSection, nItemPos) != nullptr; 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) if (bSubMenuAddedOrRemoved)
{ {
//tdf#98636 its not good enough to unset the "submenu-action" attribute to change something //tdf#98636 its not good enough to unset the "submenu-action" attribute to change something