[gnome-autoar/wip/lantw/autoar-0.2] general: Remove G_GNUC_CONST from _get_type functions
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar/wip/lantw/autoar-0.2] general: Remove G_GNUC_CONST from _get_type functions
- Date: Sun, 5 Feb 2017 17:44:20 +0000 (UTC)
commit a6bcf38646167315061b0f18fd5a59436611377b
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]