diff options
author | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-17 09:37:35 +0800 |
---|---|---|
committer | Peng Huang <phuang@phuang.nay.redhat.com> | 2009-02-17 09:37:35 +0800 |
commit | fcf4af4736529e4a65f3213cd1f1157b7c258811 (patch) | |
tree | d78af76642cb78d588dd83b1f6faff8534a5dbdc /src/ibusserializable.c | |
parent | 50453e4380288f343af04e02bf9e50ea438f198c (diff) | |
download | ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.tar.gz ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.tar.xz ibus-fcf4af4736529e4a65f3213cd1f1157b7c258811.zip |
Use NULL to replace 0 as the last argument of g_object_new.
Diffstat (limited to 'src/ibusserializable.c')
-rw-r--r-- | src/ibusserializable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ibusserializable.c b/src/ibusserializable.c index 82a49bc..348be43 100644 --- a/src/ibusserializable.c +++ b/src/ibusserializable.c @@ -473,7 +473,7 @@ ibus_serializable_copy (IBusSerializable *object) type = G_OBJECT_TYPE (object); - new_object = g_object_new (type, 0); + new_object = g_object_new (type, NULL); g_return_val_if_fail (new_object != NULL, NULL); if (IBUS_SERIALIZABLE_GET_CLASS (new_object)->copy (new_object, object)) { @@ -566,7 +566,7 @@ ibus_serializable_deserialize (IBusMessageIter *iter) g_return_val_if_fail (g_type_is_a (type, IBUS_TYPE_SERIALIZABLE), NULL); - object = g_object_new (type, 0); + object = g_object_new (type, NULL); retval = IBUS_SERIALIZABLE_GET_CLASS (object)->deserialize (object, &sub_iter); if (retval) |