]> err.no Git - libchamplain/commitdiff
First argument of gperl_croak_gerror() is now NULL.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Mon, 16 Mar 2009 18:07:07 +0000 (19:07 +0100)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 25 Mar 2009 08:06:18 +0000 (10:06 +0200)
The first parameter of gperl_croak_gerror() is not used and is there for
backward compatibility. Usually NULL is passed there.

bindings/perl/Champlain/xs/ChamplainMarker.xs

index 54e1b271cd13012518fc2436ef225e67799f01a6..5f73d9fe3bff01bc80a24c1759961e7d1f9a2ffb 100644 (file)
@@ -27,7 +27,7 @@ champlain_marker_new_with_image (class, gchar *filename)
        CODE:
                RETVAL = champlain_marker_new_with_image(filename, &error);
                if (error) {
-                       gperl_croak_gerror(filename, error);
+                       gperl_croak_gerror(NULL, error);
                }
        OUTPUT:
                RETVAL
@@ -40,7 +40,7 @@ champlain_marker_new_with_image_full(class, const gchar *filename, gint width, g
        CODE:
                RETVAL = champlain_marker_new_with_image_full(filename, width, height, anchor_x, anchor_y, &error);
                if (error) {
-                       gperl_croak_gerror(filename, error);
+                       gperl_croak_gerror(NULL, error);
                }
        OUTPUT:
                RETVAL