Commit a3a9664e authored by Marc-Antoine Perennou's avatar Marc-Antoine Perennou

make *_get_instance_private const-compliant

This is pure read-only access to an external struct
so void warnings for people calling it from const
contexts such as accessors Marc-Antoine Perennou's avatarMarc-Antoine Perennou <>
parent 52f23db7
......@@ -1938,7 +1938,7 @@ _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
static inline gpointer \
type_name##_get_instance_private (TypeName *self) \
type_name##_get_instance_private (const TypeName *self) \
{ \
return (G_STRUCT_MEMBER_P (self, TypeName##_private_offset)); \
} \
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment