Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor

3fdc5fe Make sure initialization occurs in the constructor (practicalswift)
1e7813e Remove redundant initializations from the constructor (practicalswift)
f131872 Initialize non-static class members where they are defined (practicalswift)
73bc1b7 Initialize editStatus and autoCompleter. Previously not initialized where defined or in constructor. (practicalswift)

Pull request description:

  Initialize variables previously neither defined where defined nor in constructor:
  * `editStatus`
  * `autoCompleter`

  Also; initialize non-static class members where they are defined in accordance with developer notes.

Tree-SHA512: 84f0cb87ec8394ed7641bfa0731be2ec72e6a920e00ae206ff89e2e7c960358f603c52878311b24601a33aa7cba6ea4f9a78a8ade88112dea0f41efb08e84e25
This commit is contained in:
Wladimir J. van der Laan committed 2018-05-02 16:49:59 +02:00
commit ef006d9284
4 files changed
+14 -19

No files matched your search

+3 -3
View File
@@ -83,10 +83,10 @@ public:
OutputType GetDefaultAddressType() const;
private:
WalletModel *walletModel;
AddressTablePriv *priv;
WalletModel* const walletModel;
AddressTablePriv *priv = nullptr;
QStringList columns;
EditStatus editStatus;
EditStatus editStatus = OK;
/** Look up address book data given an address string. */
bool getAddressData(const QString &address, std::string* name, std::string* purpose) const;