[gnome-contacts] Fix copying of delegates by explicitly marking transfers as owned
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fix copying of delegates by explicitly marking transfers as owned
- Date: Sun, 4 Aug 2013 08:15:44 +0000 (UTC)
commit 375b52251480037b9d5051decc8c6ec12fb2852b
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Aug 4 10:14:00 2013 +0200
Fix copying of delegates by explicitly marking transfers as owned
This fixes some compiler warnings.
src/contacts-contact.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index bd172d7..43e0a9b 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -1143,7 +1143,7 @@ public class Contacts.Contact : GLib.Object {
else
i++;
}
- persona_list.sort (compare_persona_by_store);
+ persona_list.sort ((owned) compare_persona_by_store);
return persona_list;
}
@@ -1310,7 +1310,7 @@ public class Contacts.Contact : GLib.Object {
foreach (var s in props) {
sorted_props.add (s);
}
- sorted_props.sort (compare_properties);
+ sorted_props.sort ((owned) compare_properties);
return sorted_props.to_array ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]