diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-05-02 13:56:20 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-05-02 13:56:20 +0200 |
commit | 3fdc5fee1864c759bceabaa61e104f954b9d1180 (patch) | |
tree | 8587e6033f27ecb26e467d550aa488b42c0f41e3 /src/qt | |
parent | 1e7813e9bbb2561eafdf89481e92411be44f887a (diff) |
Make sure initialization occurs in the constructor
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/addresstablemodel.h | 2 | ||||
-rw-r--r-- | src/qt/rpcconsole.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h index 94e0e1edce..0c4d585d51 100644 --- a/src/qt/addresstablemodel.h +++ b/src/qt/addresstablemodel.h @@ -81,7 +81,7 @@ public: OutputType GetDefaultAddressType() const; private: - WalletModel *walletModel = nullptr; + WalletModel* const walletModel; AddressTablePriv *priv = nullptr; QStringList columns; EditStatus editStatus = OK; diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index 26ce2af728..a53c4c24f9 100644 --- a/src/qt/rpcconsole.h +++ b/src/qt/rpcconsole.h @@ -145,13 +145,13 @@ private: }; interfaces::Node& m_node; - Ui::RPCConsole *ui = nullptr; + Ui::RPCConsole* const ui; ClientModel *clientModel = nullptr; QStringList history; int historyPtr = 0; QString cmdBeforeBrowsing; QList<NodeId> cachedNodeids; - const PlatformStyle *platformStyle = nullptr; + const PlatformStyle* const platformStyle; RPCTimerInterface *rpcTimerInterface = nullptr; QMenu *peersTableContextMenu = nullptr; QMenu *banTableContextMenu = nullptr; |