From f1d65e58b3a91fba6f4e674a502399853916e806 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 14 Mar 2012 13:45:00 +0000 Subject: [PATCH] buffer: Remove const from cogl_is_buffer (const void *) None of the other cogl_is_blah functions have a const pointer so this is just for consistency. It helps if someone is trying to have an array of type-check function pointers to determine the Cogl object type because in that case all of the functions would have to have the same prototype. Reviewed-by: Robert Bragg --- cogl/cogl-buffer.c | 2 +- cogl/cogl-buffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/cogl-buffer.c b/cogl/cogl-buffer.c index 23cd15a58..f5a0fc54e 100644 --- a/cogl/cogl-buffer.c +++ b/cogl/cogl-buffer.c @@ -85,7 +85,7 @@ _cogl_buffer_register_buffer_type (const CoglObjectClass *klass) } gboolean -cogl_is_buffer (const void *object) +cogl_is_buffer (void *object) { const CoglHandleObject *obj = object; GSList *l; diff --git a/cogl/cogl-buffer.h b/cogl/cogl-buffer.h index c1fceca46..ffd896855 100644 --- a/cogl/cogl-buffer.h +++ b/cogl/cogl-buffer.h @@ -75,7 +75,7 @@ typedef struct _CoglBuffer CoglBuffer; * Stability: unstable */ gboolean -cogl_is_buffer (const void *object); +cogl_is_buffer (void *object); /** * cogl_buffer_get_size: