summaryrefslogtreecommitdiff
path: root/src/up-device-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-device-list.c')
-rw-r--r--src/up-device-list.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/up-device-list.c b/src/up-device-list.c
index ece6d9c..5f3f0cd 100644
--- a/src/up-device-list.c
+++ b/src/up-device-list.c
@@ -30,8 +30,6 @@
static void up_device_list_finalize (GObject *object);
-#define UP_DEVICE_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UP_TYPE_DEVICE_LIST, UpDeviceListPrivate))
-
struct UpDeviceListPrivate
{
GPtrArray *array;
@@ -192,7 +190,7 @@ up_device_list_class_init (UpDeviceListClass *klass)
static void
up_device_list_init (UpDeviceList *list)
{
- list->priv = UP_DEVICE_LIST_GET_PRIVATE (list);
+ list->priv = up_device_list_get_instance_private (list);
list->priv->array = g_ptr_array_new_with_free_func (g_object_unref);
list->priv->map_native_path_to_device = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
}