[glib] Make g_assertion_message_error take a const GError*



commit a0c044b5c65500080c15e2c5e315bf87487e63b7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 6 16:42:06 2010 -0400

    Make g_assertion_message_error take a const GError*
    
    This was requested in bug 620265.

 glib/gtestutils.c |    2 +-
 glib/gtestutils.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gtestutils.c b/glib/gtestutils.c
index a21c3e5..db2be7b 100644
--- a/glib/gtestutils.c
+++ b/glib/gtestutils.c
@@ -1390,7 +1390,7 @@ g_assertion_message_error (const char     *domain,
 			   int             line,
 			   const char     *func,
 			   const char     *expr,
-			   GError         *error,
+			   const GError   *error,
 			   GQuark          error_domain,
 			   int             error_code)
 {
diff --git a/glib/gtestutils.h b/glib/gtestutils.h
index fdcc24a..bfdf8cc 100644
--- a/glib/gtestutils.h
+++ b/glib/gtestutils.h
@@ -211,7 +211,7 @@ void    g_assertion_message_error       (const char     *domain,
                                          int             line,
                                          const char     *func,
                                          const char     *expr,
-                                         GError         *error,
+                                         const GError   *error,
                                          GQuark          error_domain,
                                          int             error_code) G_GNUC_NORETURN;
 void    g_test_add_vtable               (const char     *testpath,



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