mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gbinding: Explicitly ignore return values from g_param_value_validate()
They only indicate whether the value had to be modified to keep it valid. That doesn’t matter when binding values. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Coverity CID: #1498116, #1498114
This commit is contained in:
parent
4fca3bba8f
commit
ab774d6e8b
@ -552,7 +552,7 @@ on_source_notify (GObject *source,
|
||||
{
|
||||
binding->is_frozen = TRUE;
|
||||
|
||||
g_param_value_validate (binding->target_pspec, &to_value);
|
||||
(void) g_param_value_validate (binding->target_pspec, &to_value);
|
||||
g_object_set_property (target, binding->target_pspec->name, &to_value);
|
||||
|
||||
binding->is_frozen = FALSE;
|
||||
@ -620,7 +620,7 @@ on_target_notify (GObject *target,
|
||||
{
|
||||
binding->is_frozen = TRUE;
|
||||
|
||||
g_param_value_validate (binding->source_pspec, &to_value);
|
||||
(void) g_param_value_validate (binding->source_pspec, &to_value);
|
||||
g_object_set_property (source, binding->source_pspec->name, &to_value);
|
||||
|
||||
binding->is_frozen = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user