gdbusobjectskeleton: Fix compiler warnings

The G_OBJECT_WARN_INVALID_PROPERTY_ID() macro uses a local variable
named "_object"; work around this by using "object" as the variable we
pass in.

https://bugzilla.gnome.org/show_bug.cgi?id=689377
This commit is contained in:
Colin Walters 2012-11-30 15:18:01 -05:00
parent 33de093b5a
commit 1e74e46a00

View File

@ -103,7 +103,7 @@ g_dbus_object_skeleton_get_property (GObject *_object,
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (_object, prop_id, pspec);
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
@ -123,7 +123,7 @@ g_dbus_object_skeleton_set_property (GObject *_object,
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (_object, prop_id, pspec);
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}