X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorGroups.cpp;h=d72c8bcdd7d31374b567e4fe798b12ea85079ee9;hb=a217e7366f768d671fa325ebe8546d57ce9524e6;hp=46a825335c1255f46fc9f9fb4e9545d9cb0e44d2;hpb=45729fca56479bd9158486e0cda0c4a94b4dd1dc;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorGroups.cpp b/source/contacteditor/frmContactEditorGroups.cpp index 46a8253..d72c8bc 100755 --- a/source/contacteditor/frmContactEditorGroups.cpp +++ b/source/contacteditor/frmContactEditorGroups.cpp @@ -150,18 +150,18 @@ void frmContactEditorGroup::FetchContacts( wxInitDialogEvent& event ) } else { - ContactIndex = vCardNamesDsc.size() - 1; + ContactIndex = (int)(vCardNamesDsc.size() - 1); - for (std::map::iterator iter = vCardNamesDsc.begin(); - iter != vCardNamesDsc.end(); ++iter){ + for (std::map::iterator iter = vCardNamesDsc.begin(); + iter != vCardNamesDsc.end(); ++iter){ - chkContacts->InsertItems(1, &iter->first, 0); + chkContacts->InsertItems(1, &iter->first, 0); - ContactNamesData.insert(std::make_pair(ContactIndex, iter->second)); - - ContactIndex--; + ContactNamesData.insert(std::make_pair(ContactIndex, iter->second)); + + ContactIndex--; - } + } } @@ -192,8 +192,6 @@ void frmContactEditorGroup::ProcessData( wxCommandEvent& event ) } - std::map::iterator CDataIter = ContactNamesData.find(i); - wxListItem ItemData; ItemData.SetId(0); ItemData.SetText(chkContacts->GetString(i));