Skip to content

Commit f131872

Browse files
Initialize non-static class members where they are defined
1 parent 73bc1b7 commit f131872

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/qt/addresstablemodel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class AddressTableModel : public QAbstractTableModel
8181
OutputType GetDefaultAddressType() const;
8282

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

src/qt/rpcconsole.h

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

147147
interfaces::Node& m_node;
148-
Ui::RPCConsole *ui;
149-
ClientModel *clientModel;
148+
Ui::RPCConsole *ui = nullptr;
149+
ClientModel *clientModel = nullptr;
150150
QStringList history;
151-
int historyPtr;
151+
int historyPtr = 0;
152152
QString cmdBeforeBrowsing;
153153
QList<NodeId> cachedNodeids;
154-
const PlatformStyle *platformStyle;
155-
RPCTimerInterface *rpcTimerInterface;
156-
QMenu *peersTableContextMenu;
157-
QMenu *banTableContextMenu;
158-
int consoleFontSize;
154+
const PlatformStyle *platformStyle = nullptr;
155+
RPCTimerInterface *rpcTimerInterface = nullptr;
156+
QMenu *peersTableContextMenu = nullptr;
157+
QMenu *banTableContextMenu = nullptr;
158+
int consoleFontSize = 0;
159159
QCompleter *autoCompleter = nullptr;
160160
QThread thread;
161161
QString m_last_wallet_id;

0 commit comments

Comments
 (0)