[gimp] app: make TempBuf parameter of temp_buf_get_data() const



commit 8d5ac2c780be5f32b611de3b4c19677c283c2e37
Author: Michael Natterer <mitch gimp org>
Date:   Tue Apr 5 22:10:12 2011 +0200

    app: make TempBuf parameter of temp_buf_get_data() const

 app/base/temp-buf.c |    2 +-
 app/base/temp-buf.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/base/temp-buf.c b/app/base/temp-buf.c
index 3cab805..61fc650 100644
--- a/app/base/temp-buf.c
+++ b/app/base/temp-buf.c
@@ -352,7 +352,7 @@ temp_buf_free (TempBuf *buf)
 }
 
 guchar *
-temp_buf_get_data (TempBuf *buf)
+temp_buf_get_data (const TempBuf *buf)
 {
   return buf->data;
 }
diff --git a/app/base/temp-buf.h b/app/base/temp-buf.h
index c4f33c5..fd31fe5 100644
--- a/app/base/temp-buf.h
+++ b/app/base/temp-buf.h
@@ -61,7 +61,7 @@ TempBuf * temp_buf_copy_area     (TempBuf       *src,
 void      temp_buf_demultiply    (TempBuf       *buf);
 
 void      temp_buf_free          (TempBuf       *buf);
-guchar  * temp_buf_get_data      (TempBuf       *buf);
+guchar  * temp_buf_get_data      (const TempBuf *buf);
 gsize     temp_buf_get_data_size (TempBuf       *buf);
 guchar  * temp_buf_data_clear    (TempBuf       *buf);
 



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