mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gfileinfo: Remove erroneous GFileType casts from returns
Looks like copy/paste errors. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
2f862993cc
commit
8cee721df8
@ -1578,7 +1578,7 @@ g_file_info_get_is_hidden (GFileInfo *info)
|
||||
attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN);
|
||||
|
||||
value = g_file_info_find_value (info, attr);
|
||||
return (GFileType)_g_file_attribute_value_get_boolean (value);
|
||||
return _g_file_attribute_value_get_boolean (value);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1604,7 +1604,7 @@ g_file_info_get_is_backup (GFileInfo *info)
|
||||
attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP);
|
||||
|
||||
value = g_file_info_find_value (info, attr);
|
||||
return (GFileType)_g_file_attribute_value_get_boolean (value);
|
||||
return _g_file_attribute_value_get_boolean (value);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1630,7 +1630,7 @@ g_file_info_get_is_symlink (GFileInfo *info)
|
||||
attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK);
|
||||
|
||||
value = g_file_info_find_value (info, attr);
|
||||
return (GFileType)_g_file_attribute_value_get_boolean (value);
|
||||
return _g_file_attribute_value_get_boolean (value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user