summaryrefslogtreecommitdiff
path: root/contrib/gen-dbus-gobject.pl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gen-dbus-gobject.pl')
-rwxr-xr-xcontrib/gen-dbus-gobject.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gen-dbus-gobject.pl b/contrib/gen-dbus-gobject.pl
index 002b0b4..c09c03f 100755
--- a/contrib/gen-dbus-gobject.pl
+++ b/contrib/gen-dbus-gobject.pl
@@ -796,7 +796,7 @@ EOT
$properties_registration .= "\tpspec = g_param_spec_string(\"$property\", NULL, NULL, NULL, ".($p{'mode'} eq 'readonly' ? 'G_PARAM_READABLE' : 'G_PARAM_READWRITE').");\n";
$properties_init .=
"\tif (g_hash_table_lookup(properties, \"$property\")) {\n".
- "\t\tself->priv->$property_var = (gchar *)g_value_dup_boxed(g_hash_table_lookup(properties, \"$property\"));\n".
+ "\t\tself->priv->$property_var = (gchar *) g_value_dup_boxed(g_hash_table_lookup(properties, \"$property\"));\n".
"\t} else {\n".
"\t\tself->priv->$property_var = g_strdup(\"undefined\");\n".
"\t}\n";
@@ -804,7 +804,7 @@ EOT
$properties_free .= "\tg_free(self->priv->$property_var);\n";
$properties_changed_handler .=
"\t\tg_free(self->priv->$property_var);\n".
- "\t\tself->priv->$property_var = (gchar *)g_value_dup_boxed(value);\n";
+ "\t\tself->priv->$property_var = (gchar *) g_value_dup_boxed(value);\n";
} elsif ($p{'type'} eq 'array{object}') {
$properties_registration .= "\tpspec = g_param_spec_boxed(\"$property\", NULL, NULL, G_TYPE_PTR_ARRAY, ".($p{'mode'} eq 'readonly' ? 'G_PARAM_READABLE' : 'G_PARAM_READWRITE').");\n";
$properties_init .=