summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-04 23:54:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-05 09:10:05 +0100
commitd06a37b0d29834ed493903e5c7e4d746c83c7f20 (patch)
treed8e20227b650d92e0f7bb173e5f47e909fd491aa
parentfb3fc60a349f4bf45c772fdd8d00ca2fd2131551 (diff)
loplugin:cstylecast, involving pointer to incomplete type
Change-Id: I533f1177ff7de2409cdca90f35788d057a5fc3e5
-rw-r--r--vcl/unx/gtk/window/gtksalmenu.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx
index 3409ae77f080..67545b9f80fc 100644
--- a/vcl/unx/gtk/window/gtksalmenu.cxx
+++ b/vcl/unx/gtk/window/gtksalmenu.cxx
@@ -662,7 +662,7 @@ void GtkSalMenu::NativeSetItemCommand( unsigned nSection,
if ( ( nBits & MenuItemBits::CHECKABLE ) || bIsSubmenu )
{
// Item is a checkmark button.
- GVariantType* pStateType = g_variant_type_new( (gchar*) G_VARIANT_TYPE_BOOLEAN );
+ GVariantType* pStateType = g_variant_type_new( reinterpret_cast<gchar const *>(G_VARIANT_TYPE_BOOLEAN) );
GVariant* pState = g_variant_new_boolean( bChecked );
g_lo_action_group_insert_stateful( pActionGroup, aCommand, nId, bIsSubmenu, NULL, pStateType, NULL, pState );
@@ -670,8 +670,8 @@ void GtkSalMenu::NativeSetItemCommand( unsigned nSection,
else if ( nBits & MenuItemBits::RADIOCHECK )
{
// Item is a radio button.
- GVariantType* pParameterType = g_variant_type_new( (gchar*) G_VARIANT_TYPE_STRING );
- GVariantType* pStateType = g_variant_type_new( (gchar*) G_VARIANT_TYPE_STRING );
+ GVariantType* pParameterType = g_variant_type_new( reinterpret_cast<gchar const *>(G_VARIANT_TYPE_STRING) );
+ GVariantType* pStateType = g_variant_type_new( reinterpret_cast<gchar const *>(G_VARIANT_TYPE_STRING) );
GVariant* pState = g_variant_new_string( "" );
pTarget = g_variant_new_string( aCommand );