mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-09-20 09:16:15 +02:00
liststore: Simplify code
This is also faster, though I doubt anyone's able to measure it.
The previous code was a more complicted way to do the same thing and it
was likely written the more complicated way because it fell out commit
758d7073a9
when fixing
https://bugzilla.gnome.org/show_bug.cgi?id=795307
This commit is contained in:
parent
b0e239c26e
commit
e1cec0fb11
@ -486,8 +486,7 @@ g_list_store_splice (GListStore *store,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
it = g_sequence_insert_before (it, g_object_ref (additions[i]));
|
g_sequence_insert_before (it, g_object_ref (additions[i]));
|
||||||
it = g_sequence_iter_next (it);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user