mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 04:14:11 +02:00
Rename the generated private data getter function
As it turns out, we have examples of internal functions called type_name_get_private() in the wild (especially among older libraries), so we need to use a name for the per-instance private data getter function that hopefully won't conflict with anything.
This commit is contained in:
@@ -149,7 +149,7 @@ g_filter_input_stream_get_property (GObject *object,
|
||||
GFilterInputStreamPrivate *priv;
|
||||
|
||||
filter_stream = G_FILTER_INPUT_STREAM (object);
|
||||
priv = g_filter_input_stream_get_private (filter_stream);
|
||||
priv = g_filter_input_stream_get_instance_private (filter_stream);
|
||||
|
||||
switch (prop_id)
|
||||
{
|
||||
@@ -217,7 +217,7 @@ g_filter_input_stream_get_close_base_stream (GFilterInputStream *stream)
|
||||
|
||||
g_return_val_if_fail (G_IS_FILTER_INPUT_STREAM (stream), FALSE);
|
||||
|
||||
priv = g_filter_input_stream_get_private (stream);
|
||||
priv = g_filter_input_stream_get_instance_private (stream);
|
||||
|
||||
return priv->close_base;
|
||||
}
|
||||
@@ -239,7 +239,7 @@ g_filter_input_stream_set_close_base_stream (GFilterInputStream *stream,
|
||||
|
||||
close_base = !!close_base;
|
||||
|
||||
priv = g_filter_input_stream_get_private (stream);
|
||||
priv = g_filter_input_stream_get_instance_private (stream);
|
||||
|
||||
if (priv->close_base != close_base)
|
||||
{
|
||||
@@ -297,7 +297,7 @@ g_filter_input_stream_close (GInputStream *stream,
|
||||
GError **error)
|
||||
{
|
||||
GFilterInputStream *filter_stream = G_FILTER_INPUT_STREAM (stream);
|
||||
GFilterInputStreamPrivate *priv = g_filter_input_stream_get_private (filter_stream);
|
||||
GFilterInputStreamPrivate *priv = g_filter_input_stream_get_instance_private (filter_stream);
|
||||
gboolean res = TRUE;
|
||||
|
||||
if (priv->close_base)
|
||||
|
Reference in New Issue
Block a user