From: Steve Brokenshire Date: Wed, 16 Mar 2016 23:24:17 +0000 (+0000) Subject: Removed unused variables from contacteditor/frmContactEditor-Business.cpp X-Git-Tag: release-0.11~55^2 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=d595cc34be580e7d92222b0539911c8e0985cec9;p=xestiaab%2F.git Removed unused variables from contacteditor/frmContactEditor-Business.cpp --- diff --git a/source/contacteditor/frmContactEditor-Business.cpp b/source/contacteditor/frmContactEditor-Business.cpp index 2fe0201..923d57e 100644 --- a/source/contacteditor/frmContactEditor-Business.cpp +++ b/source/contacteditor/frmContactEditor-Business.cpp @@ -35,11 +35,9 @@ void frmContactEditor::AddBusinessNickname( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessNicknamesList); frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList, &ContactEditorData.BusinessNicknamesListAltID, &ContactEditorData.BusinessNicknamesListPID, @@ -106,11 +104,9 @@ void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event ) void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessAddressList); frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList, &ContactEditorData.BusinessAddressListTown, &ContactEditorData.BusinessAddressListCounty, @@ -194,11 +190,9 @@ void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event ) void frmContactEditor::AddBusinessEmail( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessAddressList); frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList, &ContactEditorData.BusinessEmailListAltID, &ContactEditorData.BusinessEmailListPID, @@ -260,11 +254,9 @@ void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event ) void frmContactEditor::AddBusinessIM( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessIMList); frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList, &ContactEditorData.BusinessIMListAltID, &ContactEditorData.BusinessIMListPID, @@ -331,11 +323,9 @@ void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event ) void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTelephoneList); frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList, &ContactEditorData.BusinessTelephoneListAltID, &ContactEditorData.BusinessTelephoneListPID, @@ -399,11 +389,9 @@ void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event ) void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessLanguageList); frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList, &ContactEditorData.BusinessLanguageListAltID, &ContactEditorData.BusinessLanguageListPID, @@ -465,11 +453,9 @@ void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event ) void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTZList); frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList, &ContactEditorData.BusinessTZListAltID, &ContactEditorData.BusinessTZListPID, @@ -533,11 +519,9 @@ void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event ) void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event ) { - int intResult = 0; - + frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessGeographyList); frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList, &ContactEditorData.BusinessGeographyListAltID, &ContactEditorData.BusinessGeographyListPID, @@ -604,11 +588,9 @@ void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event ) void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessWebsiteList); frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList, &ContactEditorData.BusinessWebsiteListAltID, &ContactEditorData.BusinessWebsiteListPID, @@ -672,11 +654,9 @@ void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event ) void frmContactEditor::AddBusinessTitle( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTitleList); frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList, &ContactEditorData.BusinessTitleListLanguage, &ContactEditorData.BusinessTitleListAltID, @@ -740,11 +720,9 @@ void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event ) void frmContactEditor::AddBusinessRole( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessRoleList); frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList, &ContactEditorData.BusinessRoleListLanguage, &ContactEditorData.BusinessRoleListAltID, @@ -808,11 +786,9 @@ void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event ) void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessOrganisationsList); frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList, &ContactEditorData.BusinessOrganisationsListLanguage, &ContactEditorData.BusinessOrganisationsListSortAs, @@ -879,11 +855,9 @@ void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event ) void frmContactEditor::AddBusinessNote( wxCommandEvent& event ) { - int intResult = 0; frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessNoteList); frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList, &ContactEditorData.BusinessNoteListLanguage, &ContactEditorData.BusinessNoteListAltID,