mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +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)
|
if (remove)
|
||||||
{
|
{
|
||||||
|
GDataElt *data_last = data_end - 1;
|
||||||
|
|
||||||
found_keys++;
|
found_keys++;
|
||||||
|
|
||||||
if (data < --data_end)
|
if (data < data_last)
|
||||||
*data = *data_end;
|
*data = *data_last;
|
||||||
|
|
||||||
|
data_end--;
|
||||||
d->len--;
|
d->len--;
|
||||||
|
|
||||||
/* We don't bother to shrink, but if all data are now gone
|
/* We don't bother to shrink, but if all data are now gone
|
||||||
|
Loading…
Reference in New Issue
Block a user