glib r7378 - trunk/gobject



Author: johan
Date: Thu Aug 21 09:42:44 2008
New Revision: 7378
URL: http://svn.gnome.org/viewvc/glib?rev=7378&view=rev

Log:
2008-08-21  Johan Dahlin  <johan gnome org>

    * gobject.h:
    Mark g_object_get_type function as const, it's
    a fundamental type and can safely marked as const,
    as opposed to traditionally *_get_type functions.



Modified:
   trunk/gobject/ChangeLog
   trunk/gobject/gobject.h

Modified: trunk/gobject/gobject.h
==============================================================================
--- trunk/gobject/gobject.h	(original)
+++ trunk/gobject/gobject.h	Thu Aug 21 09:42:44 2008
@@ -396,7 +396,7 @@
 GParamSpec**g_object_interface_list_properties  (gpointer     g_iface,
 						 guint       *n_properties_p);
 
-GType       g_object_get_type                 (void);
+GType       g_object_get_type                 (void) G_GNUC_CONST;
 gpointer    g_object_new                      (GType           object_type,
 					       const gchar    *first_property_name,
 					       ...);



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