patch pour amelioration des etats
Change-Id: I5fd57088cc6a687edbaf80d556d275b7ea1040a7
Tuleap: #1205
diff --git a/SmartPanelItemsViewModel.cpp b/SmartPanelItemsViewModel.cpp
index bdb2406..e567398 100644
--- a/SmartPanelItemsViewModel.cpp
+++ b/SmartPanelItemsViewModel.cpp
@@ -36,10 +36,10 @@
}
SmartPanelItem^
-SmartPanelItemsViewModel::findItem(Call^ call)
+SmartPanelItemsViewModel::findItem(String^ callId)
{
for each (SmartPanelItem^ item in itemsList)
- if (item->_call == call)
+ if (item->_callId == callId)
return item;
return nullptr;
@@ -56,11 +56,11 @@
}
unsigned int
-SmartPanelItemsViewModel::getIndex(Call^ call)
+SmartPanelItemsViewModel::getIndex(String^ callId)
{
unsigned int i;
for (i = 0; i < itemsList_->Size; i++) {
- if (itemsList_->GetAt(i)->_call == call)
+ if (itemsList_->GetAt(i)->_callId == callId)
break;
}
return i;