[empathy] empathy_sound_manager_dup_singleton: add G_LIKELY



commit 5a39893c82e21a54b6156054f45f8db9c5a9802c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Nov 30 12:52:46 2010 +0100

    empathy_sound_manager_dup_singleton: add G_LIKELY

 libempathy-gtk/empathy-sound-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-sound-manager.c b/libempathy-gtk/empathy-sound-manager.c
index 008f664..afa27be 100644
--- a/libempathy-gtk/empathy-sound-manager.c
+++ b/libempathy-gtk/empathy-sound-manager.c
@@ -151,7 +151,7 @@ empathy_sound_manager_dup_singleton (void)
 {
   static EmpathySoundManager *manager = NULL;
 
-  if (manager != NULL)
+  if (G_LIKELY (manager != NULL))
       return g_object_ref (manager);
 
   manager = g_object_new (EMPATHY_TYPE_SOUND_MANAGER, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]