mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-17 15:37:52 +02:00
Do not validate a GValue initialized with the default
There's really no point in going through validation, if we know the value we're validating is coming straight from the GParamSpec.
This commit is contained in:
@@ -912,8 +912,11 @@ param_value_array_validate (GParamSpec *pspec,
|
|||||||
g_param_value_set_default (element_spec, element);
|
g_param_value_set_default (element_spec, element);
|
||||||
changed++;
|
changed++;
|
||||||
}
|
}
|
||||||
/* validate array value against element_spec */
|
else
|
||||||
changed += g_param_value_validate (element_spec, element);
|
{
|
||||||
|
/* validate array value against element_spec */
|
||||||
|
changed += g_param_value_validate (element_spec, element);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user