diff options
author | Christian Persch <chpe@gnome.org> | 2012-01-14 21:13:03 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2012-01-15 13:03:09 +0100 |
commit | b717ef86ade12781b95464f4de26c1c1ec2f2df2 (patch) | |
tree | 276b0b7bde4856c936b319c90fdb30849b190f68 /gio/gresourcefile.c | |
parent | 870fc484d994093b1d4ebc8d2f52665530693e59 (diff) | |
download | glib-b717ef86ade12781b95464f4de26c1c1ec2f2df2.tar.gz glib-b717ef86ade12781b95464f4de26c1c1ec2f2df2.tar.bz2 glib-b717ef86ade12781b95464f4de26c1c1ec2f2df2.zip |
resources: Use g_set_error_literal where appropriate
Diffstat (limited to 'gio/gresourcefile.c')
-rw-r--r-- | gio/gresourcefile.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c index a261098a9..3a2747441 100644 --- a/gio/gresourcefile.c +++ b/gio/gresourcefile.c @@ -453,9 +453,8 @@ g_resource_file_query_info (GFile *file, resource->path); } else - g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - "%s", - my_error->message); + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, + my_error->message); g_clear_error (&my_error); return FALSE; } @@ -554,9 +553,8 @@ g_resource_file_read (GFile *file, resource->path); } else - g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - "%s", - my_error->message); + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, + my_error->message); g_clear_error (&my_error); return NULL; } |