Use g_set_error_literal where appropriate. Patch from bug #535947.

svn path=/trunk/; revision=7051
This commit is contained in:
Christian Persch
2008-06-16 16:53:58 +00:00
parent 9c50d657e5
commit 9c17697b56
33 changed files with 481 additions and 438 deletions

View File

@@ -180,9 +180,9 @@ convert_file_to_io_error (GError **error,
}
}
g_set_error (error, G_IO_ERROR,
new_code,
"%s", file_error->message);
g_set_error_literal (error, G_IO_ERROR,
new_code,
file_error->message);
}
#endif
@@ -223,9 +223,9 @@ _g_local_file_enumerator_new (GLocalFile *file,
{
errsv = errno;
g_set_error (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
"%s", g_strerror (errsv));
g_set_error_literal (error, G_IO_ERROR,
g_io_error_from_errno (errsv),
g_strerror (errsv));
g_free (filename);
return NULL;
}