array: constify the additions array

We can only do that for by-value arrays, because compilers get confused
with const when there's too many dereferences going on.
This commit is contained in:
Benjamin Otte 2023-10-14 20:03:58 +02:00
parent 6f5833df28
commit a9823e05bb

View File

@ -215,7 +215,11 @@ gdk_array(splice) (GdkArray *self,
gsize pos,
gsize removed,
gboolean stolen,
#ifdef GDK_ARRAY_BY_VALUE
const _T_ *additions,
#else
_T_ *additions,
#endif
gsize added)
{
gsize size;