From 5da8a3e5c0191cca60e0778e671674dbb12d8266 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Fri, 1 Jan 2016 14:34:33 +0000 Subject: [PATCH] Updated DeleteGeneralRelated to use DeleteMapData. --- source/contacteditor/frmContactEditor-General.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 ) -- 2.39.5