diff options
author | Martin Szulecki | 2011-04-05 19:53:44 +0200 |
---|---|---|
committer | Martin Szulecki | 2011-04-05 19:53:44 +0200 |
commit | 8cc1cdcab2d6e8557cf1341d62fe5d1eda5ec708 (patch) | |
tree | 5ebe1cb31eff510ff112cd08ac16785ab875e35b | |
parent | b748249c936e9a32e4a6cdd4f729dcc079c860a1 (diff) | |
download | gdk-pixbuf-psd-8cc1cdcab2d6e8557cf1341d62fe5d1eda5ec708.tar.gz gdk-pixbuf-psd-8cc1cdcab2d6e8557cf1341d62fe5d1eda5ec708.tar.bz2 |
Use g_set_error_literal() as we do not pass printf format strings
-rw-r--r-- | io-psd.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -256,7 +256,7 @@ gdk_pixbuf__psd_image_begin_load (GdkPixbufModuleSizeFunc size_func, { PsdContext* context = g_malloc(sizeof(PsdContext)); if (context == NULL) { - g_set_error ( + g_set_error_literal ( error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, @@ -291,7 +291,7 @@ gdk_pixbuf__psd_image_stop_load (gpointer context_ptr, GError **error) gboolean retval = TRUE; if (ctx->state != PSD_STATE_DONE) { - g_set_error ( + g_set_error_literal ( error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE, @@ -343,14 +343,14 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, && ctx->color_mode != PSD_MODE_CMYK && ctx->color_mode != PSD_MODE_DUOTONE ) { - g_set_error (error, GDK_PIXBUF_ERROR, + g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE, ("Unsupported color mode")); return FALSE; } if (ctx->depth != 8 && ctx->depth != 16) { - g_set_error (error, GDK_PIXBUF_ERROR, + g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE, ("Unsupported color depth")); return FALSE; @@ -380,7 +380,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, if (ctx->lines_lengths == NULL || ctx->buffer == NULL || ctx->pixbuf == NULL) { - g_set_error (error, GDK_PIXBUF_ERROR, + g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, ("Insufficient memory to load PSD image file")); return FALSE; @@ -393,7 +393,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, g_malloc(ctx->width*ctx->height*ctx->depth_bytes); if (ctx->ch_bufs[i] == NULL) { - g_set_error (error, GDK_PIXBUF_ERROR, + g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, ("Insufficient memory to load PSD image file")); return FALSE; @@ -436,7 +436,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, ctx->state = PSD_STATE_CHANNEL_DATA; reset_context_buffer(ctx); } else { - g_set_error (error, GDK_PIXBUF_ERROR, + g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE, ("Unsupported compression type")); return FALSE; |