From b0034643fe4b0bc48f2279d7cf89f70815635b0b Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Wed, 5 Apr 2017 23:01:57 +0300 Subject: [PATCH] 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 --- clientgui/BOINCBaseWizard.cpp | 2 ++ clientgui/MainDocument.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/clientgui/BOINCBaseWizard.cpp b/clientgui/BOINCBaseWizard.cpp index 3532aeb6e9..60bf6e192f 100644 --- a/clientgui/BOINCBaseWizard.cpp +++ b/clientgui/BOINCBaseWizard.cpp @@ -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; } /*! diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 5738ffcce7..5538772d5b 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -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;