record-store: Simplify struct setup of record call data
Just a mechanical change that results in -2 lines. Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/755>
This commit is contained in:
@@ -487,10 +487,8 @@ record_call (CallsRecordStore *self,
|
|||||||
record, g_object_unref);
|
record, g_object_unref);
|
||||||
|
|
||||||
data = g_new (struct CallsRecordCallData, 1);
|
data = g_new (struct CallsRecordCallData, 1);
|
||||||
g_object_ref (self);
|
data->self = g_object_ref (self);
|
||||||
g_object_ref (call);
|
data->call = g_object_ref (call);
|
||||||
data->self = self;
|
|
||||||
data->call = call;
|
|
||||||
|
|
||||||
gom_resource_save_async (GOM_RESOURCE (record),
|
gom_resource_save_async (GOM_RESOURCE (record),
|
||||||
(GAsyncReadyCallback) record_call_save_cb,
|
(GAsyncReadyCallback) record_call_save_cb,
|
||||||
|
|||||||
Reference in New Issue
Block a user