Make g_assertion_message_error take a const GError*
authorMatthias Clasen <mclasen@redhat.com>
Sun, 6 Jun 2010 20:42:06 +0000 (16:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 6 Jun 2010 20:42:06 +0000 (16:42 -0400)
This was requested in bug 620265.

glib/gtestutils.c
glib/gtestutils.h

index a21c3e5..db2be7b 100644 (file)
@@ -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)
 {
index fdcc24a..bfdf8cc 100644 (file)
@@ -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,