mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
dataset: Improve readability
Improve the readability by using a temporary variable
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user