[glib] The fallback parameter to g_convert_with_fallback() should be const



commit 2295ba857f09fa58c6e61ec4147536021055bbf6
Author: Benjamin Otte <otte redhat com>
Date:   Tue Mar 16 16:34:50 2010 +0100

    The fallback parameter to g_convert_with_fallback() should be const
    
    This patch makes it so.

 glib/gconvert.c |    2 +-
 glib/gconvert.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gconvert.c b/glib/gconvert.c
index 5ec8f1d..520c32a 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -808,7 +808,7 @@ g_convert_with_fallback (const gchar *str,
 			 gssize       len,    
 			 const gchar *to_codeset,
 			 const gchar *from_codeset,
-			 gchar       *fallback,
+			 const gchar *fallback,
 			 gsize       *bytes_read,
 			 gsize       *bytes_written,
 			 GError     **error)
diff --git a/glib/gconvert.h b/glib/gconvert.h
index 4d76784..c4f274f 100644
--- a/glib/gconvert.h
+++ b/glib/gconvert.h
@@ -79,7 +79,7 @@ gchar* g_convert_with_fallback (const gchar  *str,
 				gssize        len,            
 				const gchar  *to_codeset,
 				const gchar  *from_codeset,
-				gchar        *fallback,
+				const gchar  *fallback,
 				gsize        *bytes_read,     
 				gsize        *bytes_written,  
 				GError      **error) G_GNUC_MALLOC;



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