mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 04:15:49 +01:00
tests: Use G_VALUE_INIT
This commit is contained in:
parent
91713e950f
commit
3659ca99f5
@ -37,8 +37,8 @@ static void
|
|||||||
test_enum_transformation (void)
|
test_enum_transformation (void)
|
||||||
{
|
{
|
||||||
GType type;
|
GType type;
|
||||||
GValue orig = { 0, };
|
GValue orig = G_VALUE_INIT;
|
||||||
GValue xform = { 0, };
|
GValue xform = G_VALUE_INIT;
|
||||||
GEnumValue values[] = { {0,"0","0"}, {1,"1","1"}};
|
GEnumValue values[] = { {0,"0","0"}, {1,"1","1"}};
|
||||||
|
|
||||||
type = g_enum_register_static ("TestEnum", values);
|
type = g_enum_register_static ("TestEnum", values);
|
||||||
@ -93,8 +93,8 @@ static void
|
|||||||
test_gtype_value (void)
|
test_gtype_value (void)
|
||||||
{
|
{
|
||||||
GType type;
|
GType type;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
GValue copy = { 0, };
|
GValue copy = G_VALUE_INIT;
|
||||||
|
|
||||||
g_value_init (&value, G_TYPE_GTYPE);
|
g_value_init (&value, G_TYPE_GTYPE);
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ lcopy (GValue *value, ...)
|
|||||||
static void
|
static void
|
||||||
test_collection (void)
|
test_collection (void)
|
||||||
{
|
{
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gchar *error;
|
gchar *error;
|
||||||
|
|
||||||
g_value_init (&value, G_TYPE_CHAR);
|
g_value_init (&value, G_TYPE_CHAR);
|
||||||
@ -234,7 +234,7 @@ test_collection (void)
|
|||||||
static void
|
static void
|
||||||
test_copying (void)
|
test_copying (void)
|
||||||
{
|
{
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gchar *error;
|
gchar *error;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,7 @@ static void
|
|||||||
test_param_spec_char (void)
|
test_param_spec_char (void)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gboolean modified;
|
gboolean modified;
|
||||||
|
|
||||||
pspec = g_param_spec_char ("char", "nick", "blurb",
|
pspec = g_param_spec_char ("char", "nick", "blurb",
|
||||||
@ -90,7 +90,7 @@ static void
|
|||||||
test_param_spec_string (void)
|
test_param_spec_string (void)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gboolean modified;
|
gboolean modified;
|
||||||
|
|
||||||
pspec = g_param_spec_string ("string", "nick", "blurb",
|
pspec = g_param_spec_string ("string", "nick", "blurb",
|
||||||
@ -162,7 +162,7 @@ static void
|
|||||||
test_param_spec_override (void)
|
test_param_spec_override (void)
|
||||||
{
|
{
|
||||||
GParamSpec *ospec, *pspec;
|
GParamSpec *ospec, *pspec;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gboolean modified;
|
gboolean modified;
|
||||||
|
|
||||||
ospec = g_param_spec_char ("char", "nick", "blurb",
|
ospec = g_param_spec_char ("char", "nick", "blurb",
|
||||||
@ -202,7 +202,7 @@ static void
|
|||||||
test_param_spec_gtype (void)
|
test_param_spec_gtype (void)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gboolean modified;
|
gboolean modified;
|
||||||
|
|
||||||
pspec = g_param_spec_gtype ("gtype", "nick", "blurb",
|
pspec = g_param_spec_gtype ("gtype", "nick", "blurb",
|
||||||
@ -226,7 +226,7 @@ static void
|
|||||||
test_param_spec_variant (void)
|
test_param_spec_variant (void)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec;
|
GParamSpec *pspec;
|
||||||
GValue value = { 0, };
|
GValue value = G_VALUE_INIT;
|
||||||
gboolean modified;
|
gboolean modified;
|
||||||
|
|
||||||
pspec = g_param_spec_variant ("variant", "nick", "blurb",
|
pspec = g_param_spec_variant ("variant", "nick", "blurb",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user