dataset: Improve readability

Improve the readability by using a temporary variable
This commit is contained in:
Peter Bloomfield 2022-06-27 17:42:11 -04:00
parent e95a6bdd7d
commit 8bd63258a5

View File

@ -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