aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-04-10 01:23:24 +0200
committerpracticalswift <[email protected]>2018-04-10 01:23:24 +0200
commitf131872653dadafd9af8bec255dfd2bddd75a471 (patch)
tree5fa3e67ca5b56c1453b153a724c679c701546aea /src
parentInitialize editStatus and autoCompleter. Previously not initialized where def... (diff)
downloaddiscoin-f131872653dadafd9af8bec255dfd2bddd75a471.tar.xz
discoin-f131872653dadafd9af8bec255dfd2bddd75a471.zip
Initialize non-static class members where they are defined
Diffstat (limited to 'src')
-rw-r--r--src/qt/addresstablemodel.h4
-rw-r--r--src/qt/rpcconsole.h16
2 files changed, 10 insertions, 10 deletions
diff --git a/src/qt/addresstablemodel.h b/src/qt/addresstablemodel.h
index 9b20157a8..94e0e1edc 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;
diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h
index aedee2486..26ce2af72 100644
--- a/src/qt/rpcconsole.h
+++ b/src/qt/rpcconsole.h
@@ -145,17 +145,17 @@ private:
};
interfaces::Node& m_node;
- Ui::RPCConsole *ui;
- ClientModel *clientModel;
+ Ui::RPCConsole *ui = nullptr;
+ ClientModel *clientModel = nullptr;
QStringList history;
- int historyPtr;
+ int historyPtr = 0;
QString cmdBeforeBrowsing;
QList<NodeId> cachedNodeids;
- const PlatformStyle *platformStyle;
- RPCTimerInterface *rpcTimerInterface;
- QMenu *peersTableContextMenu;
- QMenu *banTableContextMenu;
- int consoleFontSize;
+ const PlatformStyle *platformStyle = nullptr;
+ RPCTimerInterface *rpcTimerInterface = nullptr;
+ QMenu *peersTableContextMenu = nullptr;
+ QMenu *banTableContextMenu = nullptr;
+ int consoleFontSize = 0;
QCompleter *autoCompleter = nullptr;
QThread thread;
QString m_last_wallet_id;