mirror of https://github.com/GNOME/gimp.git
changed to use g_error_new_literal().
2008-08-17 Sven Neumann <sven@gimp.org> * plug-ins/file-psd/psd-util.c (psd_set_error): changed to use g_error_new_literal(). svn path=/trunk/; revision=26617
This commit is contained in:
parent
51d56e3a43
commit
1277bb4415
|
@ -1,3 +1,8 @@
|
|||
2008-08-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
|
||||
g_error_new_literal().
|
||||
|
||||
2008-08-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/plug-in/gimpplugin-progress.c
|
||||
|
|
|
@ -49,12 +49,16 @@ psd_set_error (const gboolean file_eof,
|
|||
* Set error
|
||||
*/
|
||||
if (file_eof)
|
||||
*error = g_error_new (G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
||||
_("Unexpected end of file"));
|
||||
{
|
||||
*error = g_error_new (G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
||||
_("Unexpected end of file"));
|
||||
}
|
||||
else
|
||||
*error = g_error_new (G_FILE_ERROR,
|
||||
g_file_error_from_errno (err_no),
|
||||
"%s", g_strerror (err_no));
|
||||
{
|
||||
*error = g_error_new_literal (G_FILE_ERROR,
|
||||
g_file_error_from_errno (err_no),
|
||||
g_strerror (err_no));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue