mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
dataset: Improve readability
Improve the readability by using a temporary variable
This commit is contained in:
parent
e95a6bdd7d
commit
8bd63258a5
@ -526,11 +526,14 @@ g_data_remove_internal (GData **datalist,
|
||||
|
||||
if (remove)
|
||||
{
|
||||
GDataElt *data_last = data_end - 1;
|
||||
|
||||
found_keys++;
|
||||
|
||||
if (data < --data_end)
|
||||
*data = *data_end;
|
||||
if (data < data_last)
|
||||
*data = *data_last;
|
||||
|
||||
data_end--;
|
||||
d->len--;
|
||||
|
||||
/* We don't bother to shrink, but if all data are now gone
|
||||
|
Loading…
Reference in New Issue
Block a user