mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gio: Use the new private instance data declaration
Use the newly added macros, and remove the explicit calls to g_type_class_add_private(). https://bugzilla.gnome.org/show_bug.cgi?id=700035
This commit is contained in:
@@ -84,8 +84,6 @@ struct _GFileInputStreamPrivate {
|
||||
static void
|
||||
g_file_input_stream_class_init (GFileInputStreamClass *klass)
|
||||
{
|
||||
g_type_class_add_private (klass, sizeof (GFileInputStreamPrivate));
|
||||
|
||||
klass->query_info_async = g_file_input_stream_real_query_info_async;
|
||||
klass->query_info_finish = g_file_input_stream_real_query_info_finish;
|
||||
}
|
||||
@@ -103,9 +101,7 @@ g_file_input_stream_seekable_iface_init (GSeekableIface *iface)
|
||||
static void
|
||||
g_file_input_stream_init (GFileInputStream *stream)
|
||||
{
|
||||
stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream,
|
||||
G_TYPE_FILE_INPUT_STREAM,
|
||||
GFileInputStreamPrivate);
|
||||
stream->priv = g_file_input_stream_get_private (stream);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user