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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user