33 lines
1013 B
Diff
33 lines
1013 B
Diff
From 201b5a9614afdc39f6cef08072834d59ab63ff65 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
|
Date: Fri, 22 Nov 2019 14:19:10 +0100
|
|
Subject: [PATCH 016/181] fp-print: Use g_date_copy
|
|
|
|
As per previous commit we depend on glib 2.56, we can use this utility
|
|
function as well.
|
|
---
|
|
libfprint/fp-print.c | 7 ++-----
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/libfprint/fp-print.c b/libfprint/fp-print.c
|
|
index 1a6a70f..39c5c0a 100644
|
|
--- a/libfprint/fp-print.c
|
|
+++ b/libfprint/fp-print.c
|
|
@@ -534,11 +534,8 @@ fp_print_set_enroll_date (FpPrint *print,
|
|
|
|
g_clear_pointer (&print->enroll_date, g_date_free);
|
|
if (enroll_date)
|
|
- {
|
|
- /* XXX: Should use g_date_copy, but that is new in 2.56. */
|
|
- print->enroll_date = g_date_new ();
|
|
- *print->enroll_date = *enroll_date;
|
|
- }
|
|
+ print->enroll_date = g_date_copy (enroll_date);
|
|
+
|
|
g_object_notify_by_pspec (G_OBJECT (print), properties[PROP_ENROLL_DATE]);
|
|
}
|
|
|
|
--
|
|
2.24.1
|
|
|