From 73bc1b7cd2b3fb5e34f4fc5aaa6892fb1e8f2d1e Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 10 Apr 2018 01:08:02 +0200 Subject: Initialize editStatus and autoCompleter. Previously not initialized where defined or in constructor. --- src/qt/addresstablemodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qt/addresstablemodel.h') diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h index d7aeda9d8e..9b20157a81 100644 --- a/src/qt/addresstablemodel.h +++ b/src/qt/addresstablemodel.h @@ -84,7 +84,7 @@ private: WalletModel *walletModel; AddressTablePriv *priv; QStringList columns; - EditStatus editStatus; + EditStatus editStatus = OK; /** Notify listeners that data changed. */ void emitDataChanged(int index); -- cgit v1.2.3 From f131872653dadafd9af8bec255dfd2bddd75a471 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 10 Apr 2018 01:23:24 +0200 Subject: Initialize non-static class members where they are defined --- src/qt/addresstablemodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qt/addresstablemodel.h') diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h index 9b20157a81..94e0e1edce 100644 --- a/src/qt/addresstablemodel.h +++ b/src/qt/addresstablemodel.h @@ -81,8 +81,8 @@ public: OutputType GetDefaultAddressType() const; private: - WalletModel *walletModel; - AddressTablePriv *priv; + WalletModel *walletModel = nullptr; + AddressTablePriv *priv = nullptr; QStringList columns; EditStatus editStatus = OK; -- cgit v1.2.3 From 3fdc5fee1864c759bceabaa61e104f954b9d1180 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 2 May 2018 13:56:20 +0200 Subject: Make sure initialization occurs in the constructor --- src/qt/addresstablemodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qt/addresstablemodel.h') 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; -- cgit v1.2.3