From 04b79f91e878d6329a70ddd34700fad54693c671 Mon Sep 17 00:00:00 2001 From: Robert Royals Date: Tue, 2 Jul 2024 13:03:42 +0100 Subject: [PATCH] gobject: Fix macro name in comment; improve style Comment referenced non-existent macro: G_DEFINE_TYPE_WITH_CODE_AND_PRELUDE but it should be: _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE --- gobject/gtype.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gobject/gtype.h b/gobject/gtype.h index 14bcaf286..02a718464 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -2330,12 +2330,12 @@ type_name##_get_type_once (void) \ return g_define_type_id; \ } /* closes type_name##_get_type_once() */ -/* This was defined before we had G_DEFINE_TYPE_WITH_CODE_AND_PRELUDE, it's simplest - * to keep it. +/* This was defined before we had _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE in + * gtype-private.h, it's simplest to keep it. */ #define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \ - _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name) \ - _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags) \ + _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE (TypeName, type_name) \ + _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER (TypeName, type_name, TYPE_PARENT, flags) /* Intentionally using (GTypeFlags) 0 instead of G_TYPE_FLAG_NONE here, * to avoid deprecation warnings with older GLIB_VERSION_MAX_ALLOWED */