[Telepathy-commits] [telepathy-qt4/master] It makes no sense to create a contact pointer if it should be deleted..
Andrea Bakkar
andrea.bakkar at basyskom.de
Mon Feb 2 07:25:35 PST 2009
---
TelepathyQt4/Prototype/ContactManager.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/TelepathyQt4/Prototype/ContactManager.cpp b/TelepathyQt4/Prototype/ContactManager.cpp
index fb5f52b..7114375 100644
--- a/TelepathyQt4/Prototype/ContactManager.cpp
+++ b/TelepathyQt4/Prototype/ContactManager.cpp
@@ -1073,7 +1073,9 @@ void ContactManager::slotMembersChanged(const QString& message,
QHash<uint, QPointer<Contact> > tmp_list;
for (int i = 0; i < removed_to_look_up.size(); ++i)
{
- QPointer<Contact> contact = new Contact(removed_to_look_up.at(i), handle_names.value().at(i), Contact::CT_Known, d->m_pInterface, this );
+ // QPointer<Contact> contact = new Contact(removed_to_look_up.at(i), handle_names.value().at(i), Contact::CT_Known, d->m_pInterface, this );
+ Contact* contact = d->m_members.value( removed_to_look_up.at(i) );
+ Q_ASSERT(contact);
Q_ASSERT(contact->isValid());
tmp_list.insert(removed_to_look_up.at(i), contact);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list