Make sure initialization occurs in the constructor

This commit is contained in:
practicalswift 2018-05-02 13:56:20 +02:00
parent 1e7813e9bb
commit 3fdc5fee18
2 changed files with 3 additions and 3 deletions

View File

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

View File

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