diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-06-19 12:47:48 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-06-19 12:47:48 +0000 |
commit | 446f41757b425441976e5a2b32c233f64036e6ff (patch) | |
tree | e5c7f9043eee1d0378dee141d90ceab4db21db0f /gdk-pixbuf/io-ras.c | |
parent | 1a30e12586de407b88b003b2f2599a599a9527f5 (diff) | |
download | gtk+-446f41757b425441976e5a2b32c233f64036e6ff.tar.gz |
Use g_set_error_literal where appropriate. Bug #538640.
svn path=/trunk/; revision=20463
Diffstat (limited to 'gdk-pixbuf/io-ras.c')
-rw-r--r-- | gdk-pixbuf/io-ras.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdk-pixbuf/io-ras.c b/gdk-pixbuf/io-ras.c index 655556edd9..1eab516031 100644 --- a/gdk-pixbuf/io-ras.c +++ b/gdk-pixbuf/io-ras.c @@ -120,10 +120,10 @@ static gboolean RAS2State(struct rasterfile *RAS, if ((gint)State->Header.width <= 0 || (gint)State->Header.height <= 0 || State->Header.maplength > 768) { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("RAS image has bogus header data")); + g_set_error_literal (error, + GDK_PIXBUF_ERROR, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, + _("RAS image has bogus header data")); return FALSE; } @@ -142,18 +142,18 @@ static gboolean RAS2State(struct rasterfile *RAS, State->LineWidth++; } else { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("RAS image has unknown type")); + g_set_error_literal (error, + GDK_PIXBUF_ERROR, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, + _("RAS image has unknown type")); return FALSE; } if (State->Header.type > 2 || State->Header.maptype > 1) { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("unsupported RAS image variation")); + g_set_error_literal (error, + GDK_PIXBUF_ERROR, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, + _("unsupported RAS image variation")); return FALSE; } @@ -165,10 +165,10 @@ static gboolean RAS2State(struct rasterfile *RAS, State->LineBuf = g_try_malloc (State->LineWidth); if (!State->LineBuf) { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, - _("Not enough memory to load RAS image")); + g_set_error_literal (error, + GDK_PIXBUF_ERROR, + GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, + _("Not enough memory to load RAS image")); return FALSE; } } @@ -194,10 +194,10 @@ static gboolean RAS2State(struct rasterfile *RAS, (gint) State->Header.height); if (!State->pixbuf) { - g_set_error (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, - _("Not enough memory to load RAS image")); + g_set_error_literal (error, + GDK_PIXBUF_ERROR, + GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, + _("Not enough memory to load RAS image")); return FALSE; } |