mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
record-store: Remove unnecessary casts
g_object_get() accepts gpointer, so casting is not needed. Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/755>
This commit is contained in:
parent
3f96639b81
commit
5473f03be9
1 changed files with 3 additions and 4 deletions
|
@ -522,13 +522,12 @@ update_cb (GomResource *resource,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
stamp_call (CallsCallRecord *record,
|
stamp_call (CallsCallRecord *record,
|
||||||
const gchar *stamp_name)
|
const char *stamp_name)
|
||||||
{
|
{
|
||||||
GObject *record_obj = G_OBJECT (record);
|
|
||||||
GDateTime *stamp = NULL;
|
GDateTime *stamp = NULL;
|
||||||
|
|
||||||
/* Check the call has not already been stamped */
|
/* Check the call has not already been stamped */
|
||||||
g_object_get (record_obj,
|
g_object_get (record,
|
||||||
stamp_name, &stamp,
|
stamp_name, &stamp,
|
||||||
NULL);
|
NULL);
|
||||||
if (stamp)
|
if (stamp)
|
||||||
|
@ -537,7 +536,7 @@ stamp_call (CallsCallRecord *record,
|
||||||
|
|
||||||
g_debug ("Stamping call `%s'", stamp_name);
|
g_debug ("Stamping call `%s'", stamp_name);
|
||||||
stamp = g_date_time_new_now_utc ();
|
stamp = g_date_time_new_now_utc ();
|
||||||
g_object_set (record_obj,
|
g_object_set (record,
|
||||||
stamp_name, stamp,
|
stamp_name, stamp,
|
||||||
NULL);
|
NULL);
|
||||||
g_date_time_unref (stamp);
|
g_date_time_unref (stamp);
|
||||||
|
|
Loading…
Reference in a new issue