[cogl] buffer: Remove const from cogl_is_buffer (const void *)



commit f1d65e58b3a91fba6f4e674a502399853916e806
Author: Neil Roberts <neil linux intel com>
Date:   Wed Mar 14 13:45:00 2012 +0000

    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 <robert linux intel com>

 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 23cd15a..f5a0fc5 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 c1fceca..ffd8968 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:



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