forked from AuroraMiddleware/gtk
testsuite/gtk/[flatten|sort]listmodel.c: Avoid VLA usage
Visual Studio is unlikely to support VLAs at any point, so avoid using them and use g_newa() instead.
This commit is contained in:
parent
cbb0d7ba69
commit
1ca906008e
@ -61,7 +61,7 @@ splice (GListStore *store,
|
||||
guint *numbers,
|
||||
guint added)
|
||||
{
|
||||
GObject *objects[added];
|
||||
GObject **objects = g_newa (GObject *, added);
|
||||
guint i;
|
||||
|
||||
for (i = 0; i < added; i++)
|
||||
|
@ -56,7 +56,7 @@ splice (GListStore *store,
|
||||
guint *numbers,
|
||||
guint added)
|
||||
{
|
||||
GObject *objects[added];
|
||||
GObject **objects = g_newa (GObject *, added);
|
||||
guint i;
|
||||
|
||||
for (i = 0; i < added; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user