Skip to content

Commit 3fdc5fe

Browse files
Make sure initialization occurs in the constructor
1 parent 1e7813e commit 3fdc5fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qt/addresstablemodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class AddressTableModel : public QAbstractTableModel
8181
OutputType GetDefaultAddressType() const;
8282

8383
private:
84-
WalletModel *walletModel = nullptr;
84+
WalletModel* const walletModel;
8585
AddressTablePriv *priv = nullptr;
8686
QStringList columns;
8787
EditStatus editStatus = OK;

src/qt/rpcconsole.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ public Q_SLOTS:
145145
};
146146

147147
interfaces::Node& m_node;
148-
Ui::RPCConsole *ui = nullptr;
148+
Ui::RPCConsole* const ui;
149149
ClientModel *clientModel = nullptr;
150150
QStringList history;
151151
int historyPtr = 0;
152152
QString cmdBeforeBrowsing;
153153
QList<NodeId> cachedNodeids;
154-
const PlatformStyle *platformStyle = nullptr;
154+
const PlatformStyle* const platformStyle;
155155
RPCTimerInterface *rpcTimerInterface = nullptr;
156156
QMenu *peersTableContextMenu = nullptr;
157157
QMenu *banTableContextMenu = nullptr;

0 commit comments

Comments
 (0)