Manager: fix uninitialized class members in constructor

From PVS Studio:
V730
Not all members of a class are initialized inside the constructor.
Consider inspecting: m_bCancelInProgress.
Consider inspecting: m_bUseDefaultPassword.
https://www.viva64.com/en/w/V730/print/

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2017-04-05 23:01:57 +03:00
parent b771170656
commit b0034643fe
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
2 changed files with 3 additions and 0 deletions

View File

@ -47,11 +47,13 @@ IMPLEMENT_DYNAMIC_CLASS( CBOINCBaseWizard, wxWizardEx )
CBOINCBaseWizard::CBOINCBaseWizard() :
wxWizardEx()
{
m_bCancelInProgress = false;
}
CBOINCBaseWizard::CBOINCBaseWizard(wxWindow *parent, int id, const wxString& title, const wxPoint& pos, long style) :
wxWizardEx(parent, id, title, pos, style)
{
m_bCancelInProgress = false;
}
/*!

View File

@ -112,6 +112,7 @@ CNetworkConnection::CNetworkConnection(CMainDocument* pDocument) :
m_bForceReconnect = false;
m_bReconnectOnError = false;
m_bNewConnection = false;
m_bUseDefaultPassword = false;
m_bUsedDefaultPassword = false;
m_iPort = GUI_RPC_PORT,
m_iReadGUIRPCAuthFailure = 0;