summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-09-30 17:21:52 +0100
committerJavier Jardón <jjardon@gnome.org>2011-10-02 17:22:57 +0100
commit3659ca99f5ae2058b53a2fefe052926fe2e1858f (patch)
treeae3835dfd54226f0441398d184be8267cc03a5ff /tests
parent91713e950ff20b6330ca66fe51c32beb1453e87e (diff)
tests: Use G_VALUE_INIT
Diffstat (limited to 'tests')
-rw-r--r--tests/gobject/gvalue-test.c12
-rw-r--r--tests/gobject/paramspec-test.c10
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/gobject/gvalue-test.c b/tests/gobject/gvalue-test.c
index bec3c64eb..6622c9f47 100644
--- a/tests/gobject/gvalue-test.c
+++ b/tests/gobject/gvalue-test.c
@@ -37,8 +37,8 @@ static void
test_enum_transformation (void)
{
GType type;
- GValue orig = { 0, };
- GValue xform = { 0, };
+ GValue orig = G_VALUE_INIT;
+ GValue xform = G_VALUE_INIT;
GEnumValue values[] = { {0,"0","0"}, {1,"1","1"}};
type = g_enum_register_static ("TestEnum", values);
@@ -93,8 +93,8 @@ static void
test_gtype_value (void)
{
GType type;
- GValue value = { 0, };
- GValue copy = { 0, };
+ GValue value = G_VALUE_INIT;
+ GValue copy = G_VALUE_INIT;
g_value_init (&value, G_TYPE_GTYPE);
@@ -141,7 +141,7 @@ lcopy (GValue *value, ...)
static void
test_collection (void)
{
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gchar *error;
g_value_init (&value, G_TYPE_CHAR);
@@ -234,7 +234,7 @@ test_collection (void)
static void
test_copying (void)
{
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gchar *error;
{
diff --git a/tests/gobject/paramspec-test.c b/tests/gobject/paramspec-test.c
index d09945b3b..b0d4240b3 100644
--- a/tests/gobject/paramspec-test.c
+++ b/tests/gobject/paramspec-test.c
@@ -36,7 +36,7 @@ static void
test_param_spec_char (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_char ("char", "nick", "blurb",
@@ -90,7 +90,7 @@ static void
test_param_spec_string (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_string ("string", "nick", "blurb",
@@ -162,7 +162,7 @@ static void
test_param_spec_override (void)
{
GParamSpec *ospec, *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
ospec = g_param_spec_char ("char", "nick", "blurb",
@@ -202,7 +202,7 @@ static void
test_param_spec_gtype (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_gtype ("gtype", "nick", "blurb",
@@ -226,7 +226,7 @@ static void
test_param_spec_variant (void)
{
GParamSpec *pspec;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
gboolean modified;
pspec = g_param_spec_variant ("variant", "nick", "blurb",