tests: Rename a variable
We will use graphene_assert_fuzzy_rect_equal() in the
next commit, and this macro creates a temporary var "s"
which would shadow the test's "s" rectangle.
Rename it to "r2".
GRAPHENE_TEST_UNIT_BEGIN (rect_init)
{
graphene_rect_t *r;
- graphene_rect_t s;
+ graphene_rect_t r2;
r = graphene_rect_init (graphene_rect_alloc (), 0.f, 0.f, 10.f, 10.f);
g_assert_cmpfloat (r->origin.x, ==, 0.f);
@@ -14,8 +14,8 @@ GRAPHENE_TEST_UNIT_BEGIN (rect_init)
g_assert_cmpfloat (r->size.width, ==, 10.f);
g_assert_cmpfloat (r->size.height, ==, 10.f);
- graphene_rect_init_from_rect (&s, r);
- g_assert_true (graphene_rect_equal (&s, r));
+ graphene_rect_init_from_rect (&r2, r);
+ g_assert_true (graphene_rect_equal (&r2, r));
graphene_rect_free (r);
}
