[gnome-contacts] Avoid more ownership mismatches of container elements



commit 89e0b0fc909132aba68a40e1a0eabe4d425bc8c6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Apr 8 12:16:56 2018 +0200

    Avoid more ownership mismatches of container elements

 src/contacts-utils.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-utils.vala b/src/contacts-utils.vala
index 9671ccc..f4c7ffc 100644
--- a/src/contacts-utils.vala
+++ b/src/contacts-utils.vala
@@ -83,7 +83,7 @@ namespace Contacts.Utils {
   public void start_chat (Contact contact, string protocol, string id) {
     var im_persona = contact.find_im_persona (protocol, id);
     var account = (im_persona.store as Tpf.PersonaStore).account;
-    var request_dict = new HashTable<weak string, Value?>(str_hash, str_equal);
+    var request_dict = new HashTable<string, Value?>(str_hash, str_equal);
     request_dict.insert (TelepathyGLib.PROP_CHANNEL_CHANNEL_TYPE,
                          TelepathyGLib.IFACE_CHANNEL_TYPE_TEXT);
     request_dict.insert (TelepathyGLib.PROP_CHANNEL_TARGET_HANDLE_TYPE,
@@ -98,7 +98,7 @@ namespace Contacts.Utils {
   }
 
   public void start_call (string contact_id, TelepathyGLib.Account account) {
-    var request_dict = new HashTable<weak string,GLib.Value?>(str_hash, str_equal);
+    var request_dict = new HashTable<string,GLib.Value?>(str_hash, str_equal);
 
     request_dict.insert (TelepathyGLib.PROP_CHANNEL_CHANNEL_TYPE,
                          TelepathyGLib.IFACE_CHANNEL_TYPE_CALL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]