diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-07-08 18:39:07 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-05 22:55:07 +0800 |
commit | f8c37da731af9f6cd74e7a0ef08fa02059d981ac (patch) | |
tree | 88678c98422ba129ac0b6f602c5832bc9570251b /libempathy/empathy-utils.c | |
parent | 5cc326f741ab695e4fac8f4c4ccd99cf235115fc (diff) | |
download | gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.gz gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.zst gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.zip |
Fix missing entries in switch statements
Added missing default cases and missing enum cases.
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index b47987f85..fdc5b465d 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -254,6 +254,7 @@ empathy_presence_get_default_message (TpConnectionPresenceType presence) return _("Unknown"); case TP_CONNECTION_PRESENCE_TYPE_UNSET: case TP_CONNECTION_PRESENCE_TYPE_ERROR: + default: return NULL; } @@ -643,6 +644,12 @@ empathy_connect_new_account (TpAccount *account, g_free (message); break; + case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: + case TP_CONNECTION_PRESENCE_TYPE_AWAY: + case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY: + case TP_CONNECTION_PRESENCE_TYPE_HIDDEN: + case TP_CONNECTION_PRESENCE_TYPE_BUSY: + case TP_CONNECTION_PRESENCE_TYPE_ERROR: default: /* do nothing if the presence is not offline */ break; |