[sysprof] tests: fix warning in model filter test



commit cd7ff7f258e5deb8b61479665f07444fffd5e97f
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 13 20:35:24 2018 -0800

    tests: fix warning in model filter test

 tests/test-model-filter.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-model-filter.c b/tests/test-model-filter.c
index 4d42723..bec0be3 100644
--- a/tests/test-model-filter.c
+++ b/tests/test-model-filter.c
@@ -79,10 +79,10 @@ test_basic (void)
 
   for (i = 0; i < 500; i++)
     {
-      g_autoptr(TestItem) item = g_list_model_get_item (G_LIST_MODEL (filter), i);
+      g_autoptr(TestItem) ele = g_list_model_get_item (G_LIST_MODEL (filter), i);
 
-      g_assert (TEST_IS_ITEM (item));
-      g_assert (filter_func1 (G_OBJECT (item), NULL));
+      g_assert (TEST_IS_ITEM (ele));
+      g_assert (filter_func1 (G_OBJECT (ele), NULL));
     }
 
   for (i = 0; i < 1000; i += 2)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]