Skip to content

Commit b1e1f4e

Browse files
committed
[Trivial] Initialize wallet pointers to nullptr
1 parent c4853b1 commit b1e1f4e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/qt/addresstablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static QString translateTypeToString(AddressTableEntry::Type type)
132132
class AddressTablePriv
133133
{
134134
public:
135-
CWallet* wallet;
135+
CWallet* wallet{nullptr};
136136
QList<AddressTableEntry> cachedAddressTable;
137137
int sendNum = 0;
138138
int recvNum = 0;

src/qt/transactiontablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class TransactionTablePriv
7777
{
7878
}
7979

80-
CWallet* wallet;
80+
CWallet* wallet{nullptr};
8181
TransactionTableModel* parent;
8282

8383
/* Local cache of wallet.

src/qt/walletmodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class WalletModel : public QObject
346346
void stop();
347347

348348
private:
349-
CWallet* wallet;
349+
CWallet* wallet{nullptr};
350350
// Simple Wallet interface.
351351
// todo: Goal would be to move every CWallet* call to the wallet wrapper and
352352
// in the model only perform the data organization (and QT wrappers) to be presented on the UI.

src/sapling/sapling_operation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class SaplingOperation {
110110
* sapling notes and nullifiers, as well as to commit transactions.
111111
* The same keystore is passed to the transaction builder in order to produce the required signatures.
112112
*/
113-
CWallet* wallet;
113+
CWallet* wallet{nullptr};
114114

115115
FromAddress fromAddress;
116116
// In case of no addressFrom filter selected, it will accept any utxo in the wallet as input.

0 commit comments

Comments
 (0)