@@ -73,7 +73,7 @@ class BitcoinGUI : public QMainWindow
73
73
bool removeWallet (WalletModel* walletModel);
74
74
void removeAllWallets ();
75
75
#endif // ENABLE_WALLET
76
- bool enableWallet;
76
+ bool enableWallet = false ;
77
77
78
78
protected:
79
79
void changeEvent (QEvent *e);
@@ -87,58 +87,58 @@ class BitcoinGUI : public QMainWindow
87
87
interfaces::Node& m_node;
88
88
std::unique_ptr<interfaces::Handler> m_handler_message_box;
89
89
std::unique_ptr<interfaces::Handler> m_handler_question;
90
- ClientModel * clientModel;
91
- WalletFrame * walletFrame;
92
-
93
- UnitDisplayStatusBarControl * unitDisplayControl;
94
- QLabel * labelWalletEncryptionIcon;
95
- QLabel * labelWalletHDStatusIcon;
96
- QLabel * labelProxyIcon;
97
- QLabel * connectionsControl;
98
- QLabel * labelBlocksIcon;
99
- QLabel * progressBarLabel;
100
- QProgressBar * progressBar;
101
- QProgressDialog * progressDialog;
102
-
103
- QMenuBar * appMenuBar;
104
- QToolBar * appToolBar;
105
- QAction * overviewAction;
106
- QAction * historyAction;
107
- QAction * quitAction;
108
- QAction * sendCoinsAction;
109
- QAction * sendCoinsMenuAction;
110
- QAction * usedSendingAddressesAction;
111
- QAction * usedReceivingAddressesAction;
112
- QAction * signMessageAction;
113
- QAction * verifyMessageAction;
114
- QAction * aboutAction;
115
- QAction * receiveCoinsAction;
116
- QAction * receiveCoinsMenuAction;
117
- QAction * optionsAction;
118
- QAction * toggleHideAction;
119
- QAction * encryptWalletAction;
120
- QAction * backupWalletAction;
121
- QAction * changePassphraseAction;
122
- QAction * aboutQtAction;
123
- QAction * openRPCConsoleAction;
124
- QAction * openAction;
125
- QAction * showHelpMessageAction;
126
- QAction * m_wallet_selector_label_action = nullptr ;
127
- QAction * m_wallet_selector_action = nullptr ;
90
+ ClientModel* clientModel = nullptr ;
91
+ WalletFrame* walletFrame = nullptr ;
92
+
93
+ UnitDisplayStatusBarControl* unitDisplayControl = nullptr ;
94
+ QLabel* labelWalletEncryptionIcon = nullptr ;
95
+ QLabel* labelWalletHDStatusIcon = nullptr ;
96
+ QLabel* labelProxyIcon = nullptr ;
97
+ QLabel* connectionsControl = nullptr ;
98
+ QLabel* labelBlocksIcon = nullptr ;
99
+ QLabel* progressBarLabel = nullptr ;
100
+ QProgressBar* progressBar = nullptr ;
101
+ QProgressDialog* progressDialog = nullptr ;
102
+
103
+ QMenuBar* appMenuBar = nullptr ;
104
+ QToolBar* appToolBar = nullptr ;
105
+ QAction* overviewAction = nullptr ;
106
+ QAction* historyAction = nullptr ;
107
+ QAction* quitAction = nullptr ;
108
+ QAction* sendCoinsAction = nullptr ;
109
+ QAction* sendCoinsMenuAction = nullptr ;
110
+ QAction* usedSendingAddressesAction = nullptr ;
111
+ QAction* usedReceivingAddressesAction = nullptr ;
112
+ QAction* signMessageAction = nullptr ;
113
+ QAction* verifyMessageAction = nullptr ;
114
+ QAction* aboutAction = nullptr ;
115
+ QAction* receiveCoinsAction = nullptr ;
116
+ QAction* receiveCoinsMenuAction = nullptr ;
117
+ QAction* optionsAction = nullptr ;
118
+ QAction* toggleHideAction = nullptr ;
119
+ QAction* encryptWalletAction = nullptr ;
120
+ QAction* backupWalletAction = nullptr ;
121
+ QAction* changePassphraseAction = nullptr ;
122
+ QAction* aboutQtAction = nullptr ;
123
+ QAction* openRPCConsoleAction = nullptr ;
124
+ QAction* openAction = nullptr ;
125
+ QAction* showHelpMessageAction = nullptr ;
126
+ QAction* m_wallet_selector_label_action = nullptr ;
127
+ QAction* m_wallet_selector_action = nullptr ;
128
128
129
129
QLabel *m_wallet_selector_label = nullptr ;
130
- QComboBox * m_wallet_selector;
130
+ QComboBox* m_wallet_selector = nullptr ;
131
131
132
- QSystemTrayIcon * trayIcon;
133
- QMenu * trayIconMenu;
134
- Notificator * notificator;
135
- RPCConsole * rpcConsole;
136
- HelpMessageDialog * helpMessageDialog;
137
- ModalOverlay * modalOverlay;
132
+ QSystemTrayIcon* trayIcon = nullptr ;
133
+ QMenu* trayIconMenu = nullptr ;
134
+ Notificator* notificator = nullptr ;
135
+ RPCConsole* rpcConsole = nullptr ;
136
+ HelpMessageDialog* helpMessageDialog = nullptr ;
137
+ ModalOverlay* modalOverlay = nullptr ;
138
138
139
139
/* * Keep track of previous number of blocks, to detect progress */
140
- int prevBlocks;
141
- int spinnerFrame;
140
+ int prevBlocks = 0 ;
141
+ int spinnerFrame = 0 ;
142
142
143
143
const PlatformStyle *platformStyle;
144
144
0 commit comments