[gegl] buffer: make src pointer in gegl_buffer_set() const
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: make src pointer in gegl_buffer_set() const
- Date: Tue, 27 Mar 2012 20:51:36 +0000 (UTC)
commit 918e7e586c737e87db5e9d45801099032a1932c8
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 27 22:51:00 2012 +0200
buffer: make src pointer in gegl_buffer_set() const
gegl/buffer/gegl-buffer-access.c | 6 +++---
gegl/buffer/gegl-buffer-private.h | 2 +-
gegl/buffer/gegl-buffer.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 29897bc..8812519 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -562,7 +562,7 @@ void
gegl_buffer_set_unlocked (GeglBuffer *buffer,
const GeglRectangle *rect,
const Babl *format,
- void *src,
+ const void *src,
gint rowstride)
{
if (format == NULL)
@@ -580,7 +580,7 @@ gegl_buffer_set_unlocked (GeglBuffer *buffer,
}
else
#endif
- gegl_buffer_iterate (buffer, rect, src, rowstride, TRUE, format, 0);
+ gegl_buffer_iterate (buffer, rect, (void *) src, rowstride, TRUE, format, 0);
if (gegl_buffer_is_shared(buffer))
{
@@ -593,7 +593,7 @@ gegl_buffer_set (GeglBuffer *buffer,
const GeglRectangle *rect,
gint level,
const Babl *format,
- void *src,
+ const void *src,
gint rowstride)
{
g_return_if_fail (GEGL_IS_BUFFER (buffer));
diff --git a/gegl/buffer/gegl-buffer-private.h b/gegl/buffer/gegl-buffer-private.h
index 8635aef..6bc04a2 100644
--- a/gegl/buffer/gegl-buffer-private.h
+++ b/gegl/buffer/gegl-buffer-private.h
@@ -102,7 +102,7 @@ gboolean gegl_buffer_unlock (GeglBuffer *buffer);
void gegl_buffer_set_unlocked (GeglBuffer *buffer,
const GeglRectangle *rect,
const Babl *format,
- void *src,
+ const void *src,
gint rowstride);
void gegl_buffer_get_unlocked (GeglBuffer *buffer,
gdouble scale,
diff --git a/gegl/buffer/gegl-buffer.h b/gegl/buffer/gegl-buffer.h
index 8ff84ec..dcb6fab 100644
--- a/gegl/buffer/gegl-buffer.h
+++ b/gegl/buffer/gegl-buffer.h
@@ -262,7 +262,7 @@ void gegl_buffer_set (GeglBuffer *buffer,
const GeglRectangle *rect,
gint scale_level,
const Babl *format,
- void *src,
+ const void *src,
gint rowstride);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]