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; OutputType GetDefaultAddressType() const;
private: private:
WalletModel *walletModel; WalletModel *walletModel = nullptr;
AddressTablePriv *priv; AddressTablePriv *priv = nullptr;
QStringList columns; QStringList columns;
EditStatus editStatus = OK; EditStatus editStatus = OK;

View file

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