diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-27 15:40:29 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-27 15:41:05 +0000 |
commit | 6bc2931e859d9c23b8d81fede23c0a962514dfae (patch) | |
tree | d249428952c3dd8b850c46f378dff897a82ece7f /src/search-channel.c | |
parent | 6dacd571ae133e9f8ada918e6222b79c932e0788 (diff) | |
download | telepathy-gabble-6bc2931e859d9c23b8d81fede23c0a962514dfae.tar.gz |
Don't use add_child_with_content with NULL/"" content
This is harmless, but looks messy. It's leftover clutter from the
loudmouth era.
Diffstat (limited to 'src/search-channel.c')
-rw-r--r-- | src/search-channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/search-channel.c b/src/search-channel.c index 8ce5edfd9..0c253ba92 100644 --- a/src/search-channel.c +++ b/src/search-channel.c @@ -885,7 +885,7 @@ build_extended_query (GabbleSearchChannel *self, wocky_node_set_attribute (x, "type", "submit"); /* add FORM_TYPE */ - field = wocky_node_add_child_with_content (x, "field", ""); + field = wocky_node_add_child (x, "field"); wocky_node_set_attributes (field, "type", "hidden", "var", "FORM_TYPE", @@ -902,7 +902,7 @@ build_extended_query (GabbleSearchChannel *self, g_assert (xmpp_field != NULL); - field = wocky_node_add_child_with_content (x, "field", ""); + field = wocky_node_add_child (x, "field"); wocky_node_set_attribute (field, "var", xmpp_field); wocky_node_add_child_with_content (field, "value", value); @@ -915,7 +915,7 @@ build_extended_query (GabbleSearchChannel *self, { xmpp_field = g_ptr_array_index (self->priv->boolean_keys, i); - field = wocky_node_add_child_with_content (x, "field", ""); + field = wocky_node_add_child (x, "field"); wocky_node_set_attributes (field, "var", xmpp_field, "type", "boolean", |