void functions should not try to return values. Fixes bug #338792.

2006-04-18  Manish Singh  <yosh@gimp.org>

        * app/core/gimpparamspecs.c: void functions should not try to return
        values. Fixes bug #338792.
This commit is contained in:
Manish Singh 2006-04-18 07:32:01 +00:00 committed by Manish Singh
parent 29b51c9af8
commit b206f60a4c
2 changed files with 23 additions and 18 deletions

View File

@ -1,3 +1,8 @@
2006-04-18 Manish Singh <yosh@gimp.org>
* app/core/gimpparamspecs.c: void functions should not try to return
values. Fixes bug #338792.
2006-04-15 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpclipboard.c (gimp_clipboard_set_buffer): fix

View File

@ -2165,8 +2165,8 @@ gimp_value_set_int16array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT16_ARRAY (value));
return gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gint16));
gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gint16));
}
void
@ -2176,8 +2176,8 @@ gimp_value_set_static_int16array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT16_ARRAY (value));
return gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gint16));
gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gint16));
}
void
@ -2187,8 +2187,8 @@ gimp_value_take_int16array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT16_ARRAY (value));
return gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gint16));
gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gint16));
}
@ -2290,8 +2290,8 @@ gimp_value_set_int32array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT32_ARRAY (value));
return gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gint32));
gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gint32));
}
void
@ -2301,8 +2301,8 @@ gimp_value_set_static_int32array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT32_ARRAY (value));
return gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gint32));
gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gint32));
}
void
@ -2312,8 +2312,8 @@ gimp_value_take_int32array (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_INT32_ARRAY (value));
return gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gint32));
gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gint32));
}
@ -2415,8 +2415,8 @@ gimp_value_set_floatarray (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_FLOAT_ARRAY (value));
return gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gdouble));
gimp_value_set_array (value, (const guint8 *) data,
length * sizeof (gdouble));
}
void
@ -2426,8 +2426,8 @@ gimp_value_set_static_floatarray (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_FLOAT_ARRAY (value));
return gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gdouble));
gimp_value_set_static_array (value, (const guint8 *) data,
length * sizeof (gdouble));
}
void
@ -2437,8 +2437,8 @@ gimp_value_take_floatarray (GValue *value,
{
g_return_if_fail (GIMP_VALUE_HOLDS_FLOAT_ARRAY (value));
return gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gdouble));
gimp_value_take_array (value, (guint8 *) data,
length * sizeof (gdouble));
}