summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-16 09:27:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-16 09:29:52 +0000
commit8c249068fc2d41ca7025e41cc0672cbcff964d75 (patch)
treeabb1d1692c6aa95fe1ff977a5c4e4df173feff38 /vcl
parent5873b3643d5b0b71a1de3df7fea4534a1fa6ebcd (diff)
match types for legibility
Change-Id: Ifd84a9a9dc54772a56d3bf0e345782f7f77562bd
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/gtksalmenu.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 0378b49f45e0..2b64f3fd6d37 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -847,8 +847,8 @@ 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 = static_cast<gboolean>(bOldHasSubmenu) != bIsSubmenu;
+ gboolean bOldHasSubmenu = g_lo_menu_get_submenu_from_item_in_section(pMenu, nSection, nItemPos) != nullptr;
+ bSubMenuAddedOrRemoved = bOldHasSubmenu != bIsSubmenu;
if (bSubMenuAddedOrRemoved)
{
//tdf#98636 its not good enough to unset the "submenu-action" attribute to change something