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/rpcconsole.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qt/rpcconsole.h') diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index aedee24869..26ce2af728 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 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; -- cgit v1.2.3