From: Steve Brokenshire Date: Fri, 1 Jan 2016 14:34:33 +0000 (+0000) Subject: Updated DeleteGeneralRelated to use DeleteMapData. X-Git-Tag: release-0.09~109 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=5da8a3e5c0191cca60e0778e671674dbb12d8266;p=xestiaab%2F.git Updated DeleteGeneralRelated to use DeleteMapData. --- diff --git a/source/contacteditor/frmContactEditor-General.cpp b/source/contacteditor/frmContactEditor-General.cpp index e1be3d5..f02eb83 100644 --- a/source/contacteditor/frmContactEditor-General.cpp +++ b/source/contacteditor/frmContactEditor-General.cpp @@ -668,13 +668,11 @@ void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event ) lboRelated->DeleteItem(longSelected); - GeneralRelatedList.erase(intSelectedData); - GeneralRelatedListRelType.erase(intSelectedData); - GeneralRelatedListAltID.erase(intSelectedData); - GeneralRelatedListPID.erase(intSelectedData); - GeneralRelatedListType.erase(intSelectedData); - GeneralRelatedListTokens.erase(intSelectedData); - GeneralRelatedListPref.erase(intSelectedData); + DeleteMapData(intSelectedData, &ContactEditorData.GeneralRelatedList, + &ContactEditorData.GeneralRelatedListRelType, &ContactEditorData.GeneralRelatedListAltID, + &ContactEditorData.GeneralRelatedListPID, &ContactEditorData.GeneralRelatedListType, + &ContactEditorData.GeneralRelatedListTokens, &ContactEditorData.GeneralRelatedListPref); + } void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event )