cpw.nader.asynclogging-3: bc1c52c7: Tiny bit of cleanup on a enum GType decl...

morshed.nader at gmail.com morshed.nader at gmail.com
Mon Mar 21 01:37:28 EDT 2011


----------------------------------------------------------------------
Revision: bc1c52c73c2dce865700853b5806c6f53a4b7d7e
Parent:   8b6ed524bb9655831ee507f15953bbd39a0d2b96
Author:   morshed.nader at gmail.com
Date:     03/21/11 00:14:33
Branch:   im.pidgin.cpw.nader.asynclogging-3
URL: http://d.pidgin.im/viewmtn/revision/info/bc1c52c73c2dce865700853b5806c6f53a4b7d7e

Changelog: 

Tiny bit of cleanup on a enum GType declaration, that section will eventually be turned into an automatically-generated section by glib-mkenums in the future

Changes against parent 8b6ed524bb9655831ee507f15953bbd39a0d2b96

  patched  libpurple/log.c

-------------- next part --------------
============================================================
--- libpurple/log.c	abc3b75be17a9868f6b125eed0ee2e30786c1b25
+++ libpurple/log.c	5c684cf6dde4880773e29da674aab764613cb94d
@@ -204,20 +204,20 @@ purple_log_chat_type_get_type(void)
 GType
 purple_log_chat_type_get_type(void)
 {
-	static GType etype = 0;
+	static GType type = 0;
 
-	if (G_UNLIKELY(etype == 0)) {
+	if (G_UNLIKELY(type == 0)) {
 		static const GEnumValue values[] = {
-            { PURPLE_LOG_IM, "PURPLE_LOG_IM", "Purple Log IM" },
-            { PURPLE_LOG_CHAT, "PURPLE_LOG_CHAT", "Purple Log Chat" },
-            { PURPLE_LOG_SYSTEM, "PURPLE_LOG_SYSTEM", "Purple Log System" },
-            { 0, NULL, NULL }
-        };
+			{ PURPLE_LOG_IM, "PURPLE_LOG_IM", "Purple Log IM" },
+			{ PURPLE_LOG_CHAT, "PURPLE_LOG_CHAT", "Purple Log Chat" },
+			{ PURPLE_LOG_SYSTEM, "PURPLE_LOG_SYSTEM", "Purple Log System" },
+			{ 0, NULL, NULL }
+		};
 
-        etype = g_enum_register_static(g_intern_static_string("PurpleLogChatType"), values);
-    }
+		type = g_enum_register_static(g_intern_static_string("PurpleLogChatType"), values);
+	}
 
-    return etype;
+	return type;
 }
 
 static gpointer


More information about the Commits mailing list