From 3fdc5fee1864c759bceabaa61e104f954b9d1180 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 2 May 2018 13:56:20 +0200 Subject: [PATCH] Make sure initialization occurs in the constructor --- src/qt/addresstablemodel.h | 2 +- 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 94e0e1edc..0c4d585d5 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 26ce2af72..a53c4c24f 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 cachedNodeids; - const PlatformStyle *platformStyle = nullptr; + const PlatformStyle* const platformStyle; RPCTimerInterface *rpcTimerInterface = nullptr; QMenu *peersTableContextMenu = nullptr; QMenu *banTableContextMenu = nullptr;