[gnome-autoar/wip/lantw/autoar-0.2: 7/11] general: Remove G_GNUC_CONST from _get_type functions



commit 24cd69e1903a8f65a1b3d67018b93e2ef124361f
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sun Feb 5 12:39:45 2017 +0800

    general: Remove G_GNUC_CONST from _get_type functions
    
    None of _get_type functions can be const because they have to modify
    global data. Most G_GNUC_CONST have been removed during the conversion
    to G_DECLARE_FINAL_TYPE, so we only have to modify the remaining one.

 gnome-autoar/autoar-enum-types.h.template |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-autoar/autoar-enum-types.h.template b/gnome-autoar/autoar-enum-types.h.template
index d2dbecf..e2d6352 100644
--- a/gnome-autoar/autoar-enum-types.h.template
+++ b/gnome-autoar/autoar-enum-types.h.template
@@ -15,7 +15,7 @@ G_BEGIN_DECLS
 
 /*** BEGIN enumeration-production ***/
 #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
-GType @enum_name@_get_type (void) G_GNUC_CONST;
+GType @enum_name@_get_type (void);
 
 /*** END enumeration-production ***/
 


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