mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
gfile: Don't use C++ keyword "template" as variable name
This breaks autotestkeyword.cc from gtk+.
This commit is contained in:
parent
8fcb73b0a9
commit
4eeac41d7d
@ -5895,7 +5895,7 @@ g_file_new_for_uri (const char *uri)
|
||||
|
||||
/**
|
||||
* g_file_new_tmp:
|
||||
* @template: (type filename) (allow-none): Template for the file
|
||||
* @tmpl: (type filename) (allow-none): Template for the file
|
||||
* name, as in g_file_open_tmp(), or %NULL for a default template.
|
||||
* @iostream: (out): on return, a #GFileIOStream for the created file.
|
||||
* @error: a #GError, or %NULL
|
||||
@ -5915,7 +5915,7 @@ g_file_new_for_uri (const char *uri)
|
||||
* Free the returned object with g_object_unref().
|
||||
**/
|
||||
GFile *
|
||||
g_file_new_tmp (const char *template,
|
||||
g_file_new_tmp (const char *tmpl,
|
||||
GFileIOStream **iostream,
|
||||
GError **error)
|
||||
{
|
||||
@ -5924,10 +5924,10 @@ g_file_new_tmp (const char *template,
|
||||
GFile *file;
|
||||
GFileOutputStream *output;
|
||||
|
||||
g_return_val_if_fail (template != NULL, NULL);
|
||||
g_return_val_if_fail (tmpl != NULL, NULL);
|
||||
g_return_val_if_fail (iostream != NULL, NULL);
|
||||
|
||||
fd = g_file_open_tmp (template, &path, error);
|
||||
fd = g_file_open_tmp (tmpl, &path, error);
|
||||
if (fd == -1)
|
||||
return NULL;
|
||||
|
||||
|
@ -550,7 +550,7 @@ GType g_file_get_type (void) G_GNUC_CONST;
|
||||
GFile * g_file_new_for_path (const char *path);
|
||||
GFile * g_file_new_for_uri (const char *uri);
|
||||
GFile * g_file_new_for_commandline_arg (const char *arg);
|
||||
GFile * g_file_new_tmp (const char *template,
|
||||
GFile * g_file_new_tmp (const char *tmpl,
|
||||
GFileIOStream **iostream,
|
||||
GError **error);
|
||||
GFile * g_file_parse_name (const char *parse_name);
|
||||
|
Loading…
Reference in New Issue
Block a user