- MGR: Bad things happen when you don't initialize default values

for variables under wxWidgets.
        
    clientgui/
        TermsOfUsePage.cpp

svn path=/trunk/boinc/; revision=21032
This commit is contained in:
Rom Walton 2010-03-30 20:44:13 +00:00
parent 0cf09e579e
commit 826e3e56de
2 changed files with 11 additions and 3 deletions

View File

@ -2271,3 +2271,10 @@ David 30 Mar 2010
gui_rpc_client_ops.cpp
client/
acct_setup.cpp,h
Rom 30 Mar 2010
- MGR: Bad things happen when you don't initialize default values
for variables under wxWidgets.
clientgui/
TermsOfUsePage.cpp

View File

@ -84,9 +84,10 @@ bool CTermsOfUsePage::Create( CBOINCBaseWizard* parent )
m_pTermsOfUseCtrl = NULL;
m_pAgreeCtrl = NULL;
m_pDisagreeCtrl = NULL;
m_bUserAgrees = false;
////@end CTermsOfUsePage member initialisation
m_bUserAgrees = false;
m_bCredentialsAlreadyAvailable = false;
////@begin CTermsOfUsePage creation
wxWizardPageEx::Create( parent, ID_TERMSOFUSEPAGE );
@ -290,7 +291,7 @@ void CTermsOfUsePage::OnTermsOfUseStatusChange( wxCommandEvent& event ) {
SetUserAgrees(true);
} else {
wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - SetUserAgrees(false)"));
SetUserAgrees(true);
SetUserAgrees(false);
}
wxLogTrace(wxT("Function Start/End"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - Function End"));