aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-04-11 11:56:44 +0200
committerpracticalswift <[email protected]>2018-04-11 11:56:44 +0200
commit1e7813e9bbb2561eafdf89481e92411be44f887a (patch)
tree6de43f9d4e826f7efc0737fadd09cc2c5e5721b4 /src
parentInitialize non-static class members where they are defined (diff)
downloaddiscoin-1e7813e9bbb2561eafdf89481e92411be44f887a.tar.xz
discoin-1e7813e9bbb2561eafdf89481e92411be44f887a.zip
Remove redundant initializations from the constructor
Diffstat (limited to 'src')
-rw-r--r--src/qt/addresstablemodel.cpp2
-rw-r--r--src/qt/rpcconsole.cpp7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp
index 1e3acd75c..b6ecd40e8 100644
--- a/src/qt/addresstablemodel.cpp
+++ b/src/qt/addresstablemodel.cpp
@@ -159,7 +159,7 @@ public:
};
AddressTableModel::AddressTableModel(WalletModel *parent) :
- QAbstractTableModel(parent),walletModel(parent),priv(0)
+ QAbstractTableModel(parent), walletModel(parent)
{
columns << tr("Label") << tr("Address");
priv = new AddressTablePriv(this);
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 5122bab36..7924840d0 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -455,12 +455,7 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
QWidget(parent),
m_node(node),
ui(new Ui::RPCConsole),
- clientModel(0),
- historyPtr(0),
- platformStyle(_platformStyle),
- peersTableContextMenu(0),
- banTableContextMenu(0),
- consoleFontSize(0)
+ platformStyle(_platformStyle)
{
ui->setupUi(this);
QSettings settings;