Initialize non-static class members where they are defined

This commit is contained in:
practicalswift 2018-04-10 01:23:24 +02:00
parent 73bc1b7cd2
commit f131872653
2 changed files with 10 additions and 10 deletions

View file

@ -81,8 +81,8 @@ public:
OutputType GetDefaultAddressType() const;
private:
WalletModel *walletModel;
AddressTablePriv *priv;
WalletModel *walletModel = nullptr;
AddressTablePriv *priv = nullptr;
QStringList columns;
EditStatus editStatus = OK;

View file

@ -145,17 +145,17 @@ private:
};
interfaces::Node& m_node;
Ui::RPCConsole *ui;
ClientModel *clientModel;
Ui::RPCConsole *ui = nullptr;
ClientModel *clientModel = nullptr;
QStringList history;
int historyPtr;
int historyPtr = 0;
QString cmdBeforeBrowsing;
QList<NodeId> cachedNodeids;
const PlatformStyle *platformStyle;
RPCTimerInterface *rpcTimerInterface;
QMenu *peersTableContextMenu;
QMenu *banTableContextMenu;
int consoleFontSize;
const PlatformStyle *platformStyle = nullptr;
RPCTimerInterface *rpcTimerInterface = nullptr;
QMenu *peersTableContextMenu = nullptr;
QMenu *banTableContextMenu = nullptr;
int consoleFontSize = 0;
QCompleter *autoCompleter = nullptr;
QThread thread;
QString m_last_wallet_id;