1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Linux/MacOSX: workaround bug in old versions of g++ that are confused by methods having the same name and one of them used as wxWidgets event handler callback.

This commit is contained in:
Mounir IDRASSI
2015-09-14 00:47:34 +02:00
parent 24f3b5230c
commit 85c1bc34e3
2 changed files with 6 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ namespace VeraCrypt
VolumePimTextCtrl->SetValue (wxT("")); VolumePimTextCtrl->SetValue (wxT(""));
} }
OnPimChanged (pim); OnPimValueChanged (pim);
} }
bool VolumePimWizardPage::IsValid () bool VolumePimWizardPage::IsValid ()
@@ -68,10 +68,10 @@ namespace VeraCrypt
void VolumePimWizardPage::OnPimChanged (wxCommandEvent& event) void VolumePimWizardPage::OnPimChanged (wxCommandEvent& event)
{ {
OnPimChanged (GetVolumePim ()); OnPimValueChanged (GetVolumePim ());
} }
void VolumePimWizardPage::OnPimChanged (int pim) void VolumePimWizardPage::OnPimValueChanged (int pim)
{ {
if (pim > 0) if (pim > 0)
{ {
@@ -119,6 +119,6 @@ namespace VeraCrypt
delete VolumePimTextCtrl; delete VolumePimTextCtrl;
VolumePimTextCtrl = newTextCtrl; VolumePimTextCtrl = newTextCtrl;
SetPimValidator (); SetPimValidator ();
OnPimChanged (GetVolumePim ()); OnPimValueChanged (GetVolumePim ());
} }
} }

View File

@@ -37,7 +37,7 @@ namespace VeraCrypt
protected: protected:
void SetPimValidator (); void SetPimValidator ();
void OnPimChanged (wxCommandEvent& event); void OnPimChanged (wxCommandEvent& event);
void OnPimChanged (int pim); void OnPimValueChanged (int pim);
}; };
} }