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:
Sven Neumann 2008-08-17 11:04:04 +00:00 committed by Sven Neumann
parent 51d56e3a43
commit 1277bb4415
2 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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;
}