mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01: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:
parent
6ad799ac67
commit
f7824da85f
@ -912,8 +912,11 @@ param_value_array_validate (GParamSpec *pspec,
|
||||
g_param_value_set_default (element_spec, element);
|
||||
changed++;
|
||||
}
|
||||
/* validate array value against element_spec */
|
||||
changed += g_param_value_validate (element_spec, element);
|
||||
else
|
||||
{
|
||||
/* validate array value against element_spec */
|
||||
changed += g_param_value_validate (element_spec, element);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user