Commit 4ef6cf25 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

don't use for loop variable declarations

parent 9f01937e
......@@ -358,8 +358,9 @@ gabble_uris_for_handle (TpHandleRepoIface *contact_repo,
TpHandle contact)
{
GPtrArray *uris = g_ptr_array_new ();
const gchar * const *scheme;
for (const gchar * const *scheme = addressable_uri_schemes; *scheme != NULL; scheme++)
for (scheme = addressable_uri_schemes; *scheme != NULL; scheme++)
{
gchar *uri = gabble_uri_for_handle (contact_repo, *scheme, contact);
......@@ -379,8 +380,9 @@ gabble_vcard_addresses_for_handle (TpHandleRepoIface *contact_repo,
{
GHashTable *addresses = g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, (GDestroyNotify) g_free);
const gchar * const *field;
for (const gchar * const *field = addressable_vcard_fields; *field != NULL; field++)
for (field = addressable_vcard_fields; *field != NULL; field++)
{
gchar *vcard_address = gabble_vcard_address_for_handle (contact_repo, *field, contact);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment