Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)
Qt-only changes.
This commit is contained in:
parent
84d0fdce11
commit
9096276e0b
52 changed files with 90 additions and 90 deletions
|
@ -59,7 +59,7 @@ protected:
|
|||
AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode, Tabs _tab, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::AddressBookPage),
|
||||
model(0),
|
||||
model(nullptr),
|
||||
mode(_mode),
|
||||
tab(_tab)
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
ForEditing /**< Open address book for editing */
|
||||
};
|
||||
|
||||
explicit AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent = 0);
|
||||
explicit AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent = nullptr);
|
||||
~AddressBookPage();
|
||||
|
||||
void setModel(AddressTableModel *model);
|
||||
|
|
|
@ -153,7 +153,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -25,7 +25,7 @@ class AddressTableModel : public QAbstractTableModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AddressTableModel(WalletModel *parent = 0);
|
||||
explicit AddressTableModel(WalletModel *parent = nullptr);
|
||||
~AddressTableModel();
|
||||
|
||||
enum ColumnIndex {
|
||||
|
|
|
@ -22,7 +22,7 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent) :
|
|||
QDialog(parent),
|
||||
ui(new Ui::AskPassphraseDialog),
|
||||
mode(_mode),
|
||||
model(0),
|
||||
model(nullptr),
|
||||
fCapsLock(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
if (idx >= 0 && idx < cachedBanlist.size())
|
||||
return &cachedBanlist[idx];
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class BanTableModel : public QAbstractTableModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BanTableModel(interfaces::Node& node, ClientModel *parent = 0);
|
||||
explicit BanTableModel(interfaces::Node& node, ClientModel *parent = nullptr);
|
||||
~BanTableModel();
|
||||
void startAutoRefresh();
|
||||
void stopAutoRefresh();
|
||||
|
|
|
@ -178,18 +178,18 @@ void BitcoinCore::shutdown()
|
|||
|
||||
BitcoinApplication::BitcoinApplication(interfaces::Node& node, int &argc, char **argv):
|
||||
QApplication(argc, argv),
|
||||
coreThread(0),
|
||||
coreThread(nullptr),
|
||||
m_node(node),
|
||||
optionsModel(0),
|
||||
clientModel(0),
|
||||
window(0),
|
||||
pollShutdownTimer(0),
|
||||
optionsModel(nullptr),
|
||||
clientModel(nullptr),
|
||||
window(nullptr),
|
||||
pollShutdownTimer(nullptr),
|
||||
#ifdef ENABLE_WALLET
|
||||
paymentServer(0),
|
||||
paymentServer(nullptr),
|
||||
m_wallet_models(),
|
||||
#endif
|
||||
returnValue(0),
|
||||
platformStyle(0)
|
||||
platformStyle(nullptr)
|
||||
{
|
||||
setQuitOnLastWindowClosed(false);
|
||||
}
|
||||
|
@ -218,15 +218,15 @@ BitcoinApplication::~BitcoinApplication()
|
|||
}
|
||||
|
||||
delete window;
|
||||
window = 0;
|
||||
window = nullptr;
|
||||
#ifdef ENABLE_WALLET
|
||||
delete paymentServer;
|
||||
paymentServer = 0;
|
||||
paymentServer = nullptr;
|
||||
#endif
|
||||
delete optionsModel;
|
||||
optionsModel = 0;
|
||||
optionsModel = nullptr;
|
||||
delete platformStyle;
|
||||
platformStyle = 0;
|
||||
platformStyle = nullptr;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
|
@ -312,7 +312,7 @@ void BitcoinApplication::requestShutdown()
|
|||
qDebug() << __func__ << ": Requesting shutdown";
|
||||
startThread();
|
||||
window->hide();
|
||||
window->setClientModel(0);
|
||||
window->setClientModel(nullptr);
|
||||
pollShutdownTimer->stop();
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
|
@ -323,7 +323,7 @@ void BitcoinApplication::requestShutdown()
|
|||
m_wallet_models.clear();
|
||||
#endif
|
||||
delete clientModel;
|
||||
clientModel = 0;
|
||||
clientModel = nullptr;
|
||||
|
||||
m_node.startShutdown();
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
CAmount value(bool *valid_out=0) const
|
||||
CAmount value(bool *valid_out=nullptr) const
|
||||
{
|
||||
return parse(text(), valid_out);
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ private:
|
|||
* return validity.
|
||||
* @note Must return 0 if !valid.
|
||||
*/
|
||||
CAmount parse(const QString &text, bool *valid_out=0) const
|
||||
CAmount parse(const QString &text, bool *valid_out=nullptr) const
|
||||
{
|
||||
CAmount val = 0;
|
||||
bool valid = BitcoinUnits::parse(currentUnit, text, &val);
|
||||
|
|
|
@ -26,9 +26,9 @@ class BitcoinAmountField: public QWidget
|
|||
Q_PROPERTY(qint64 value READ value WRITE setValue NOTIFY valueChanged USER true)
|
||||
|
||||
public:
|
||||
explicit BitcoinAmountField(QWidget *parent = 0);
|
||||
explicit BitcoinAmountField(QWidget *parent = nullptr);
|
||||
|
||||
CAmount value(bool *value=0) const;
|
||||
CAmount value(bool *value=nullptr) const;
|
||||
void setValue(const CAmount& value);
|
||||
|
||||
/** If allow empty is set to false the field will be set to the minimum allowed value if left empty. **/
|
||||
|
|
|
@ -95,7 +95,7 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
|
|||
setWindowIcon(networkStyle->getTrayAndWindowIcon());
|
||||
setWindowTitle(windowTitle);
|
||||
|
||||
rpcConsole = new RPCConsole(node, _platformStyle, 0);
|
||||
rpcConsole = new RPCConsole(node, _platformStyle, nullptr);
|
||||
helpMessageDialog = new HelpMessageDialog(node, this, false);
|
||||
#ifdef ENABLE_WALLET
|
||||
if(enableWallet)
|
||||
|
@ -1196,7 +1196,7 @@ void BitcoinGUI::updateProxyIcon()
|
|||
bool proxy_enabled = clientModel->getProxyInfo(ip_port);
|
||||
|
||||
if (proxy_enabled) {
|
||||
if (labelProxyIcon->pixmap() == 0) {
|
||||
if (labelProxyIcon->pixmap() == nullptr) {
|
||||
QString ip_port_q = QString::fromStdString(ip_port);
|
||||
labelProxyIcon->setPixmap(platformStyle->SingleColorIcon(":/icons/proxy").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE));
|
||||
labelProxyIcon->setToolTip(tr("Proxy is <b>enabled</b>: %1").arg(ip_port_q));
|
||||
|
@ -1242,7 +1242,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
|
|||
progressDialog = new QProgressDialog(title, "", 0, 100);
|
||||
progressDialog->setWindowModality(Qt::ApplicationModal);
|
||||
progressDialog->setMinimumDuration(0);
|
||||
progressDialog->setCancelButton(0);
|
||||
progressDialog->setCancelButton(nullptr);
|
||||
progressDialog->setAutoClose(false);
|
||||
progressDialog->setValue(0);
|
||||
}
|
||||
|
@ -1304,8 +1304,8 @@ void BitcoinGUI::unsubscribeFromCoreSignals()
|
|||
}
|
||||
|
||||
UnitDisplayStatusBarControl::UnitDisplayStatusBarControl(const PlatformStyle *platformStyle) :
|
||||
optionsModel(0),
|
||||
menu(0)
|
||||
optionsModel(nullptr),
|
||||
menu(nullptr)
|
||||
{
|
||||
createContextMenu();
|
||||
setToolTip(tr("Unit to show amounts in. Click to select another unit."));
|
||||
|
|
|
@ -67,7 +67,7 @@ class BitcoinGUI : public QMainWindow
|
|||
public:
|
||||
static const std::string DEFAULT_UIPLATFORM;
|
||||
|
||||
explicit BitcoinGUI(interfaces::Node& node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent = 0);
|
||||
explicit BitcoinGUI(interfaces::Node& node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent = nullptr);
|
||||
~BitcoinGUI();
|
||||
|
||||
/** Set the client model.
|
||||
|
|
|
@ -35,9 +35,9 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
|
|||
QObject(parent),
|
||||
m_node(node),
|
||||
optionsModel(_optionsModel),
|
||||
peerTableModel(0),
|
||||
banTableModel(0),
|
||||
pollTimer(0)
|
||||
peerTableModel(nullptr),
|
||||
banTableModel(nullptr),
|
||||
pollTimer(nullptr)
|
||||
{
|
||||
cachedBestHeaderHeight = -1;
|
||||
cachedBestHeaderTime = -1;
|
||||
|
|
|
@ -46,7 +46,7 @@ class ClientModel : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ClientModel(interfaces::Node& node, OptionsModel *optionsModel, QObject *parent = 0);
|
||||
explicit ClientModel(interfaces::Node& node, OptionsModel *optionsModel, QObject *parent = nullptr);
|
||||
~ClientModel();
|
||||
|
||||
interfaces::Node& node() const { return m_node; }
|
||||
|
|
|
@ -49,7 +49,7 @@ bool CCoinControlWidgetItem::operator<(const QTreeWidgetItem &other) const {
|
|||
CoinControlDialog::CoinControlDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::CoinControlDialog),
|
||||
model(0),
|
||||
model(nullptr),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -43,7 +43,7 @@ class CoinControlDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CoinControlDialog(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit CoinControlDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
~CoinControlDialog();
|
||||
|
||||
void setModel(WalletModel *model);
|
||||
|
|
|
@ -13,7 +13,7 @@ class CoinControlTreeWidget : public QTreeWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CoinControlTreeWidget(QWidget *parent = 0);
|
||||
explicit CoinControlTreeWidget(QWidget *parent = nullptr);
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
CSVModelWriter::CSVModelWriter(const QString &_filename, QObject *parent) :
|
||||
QObject(parent),
|
||||
filename(_filename), model(0)
|
||||
filename(_filename), model(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class CSVModelWriter : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CSVModelWriter(const QString &filename, QObject *parent = 0);
|
||||
explicit CSVModelWriter(const QString &filename, QObject *parent = nullptr);
|
||||
|
||||
void setModel(const QAbstractItemModel *model);
|
||||
void addColumn(const QString &title, int column, int role=Qt::EditRole);
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
EditAddressDialog::EditAddressDialog(Mode _mode, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::EditAddressDialog),
|
||||
mapper(0),
|
||||
mapper(nullptr),
|
||||
mode(_mode),
|
||||
model(0)
|
||||
model(nullptr)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
EditSendingAddress
|
||||
};
|
||||
|
||||
explicit EditAddressDialog(Mode mode, QWidget *parent = 0);
|
||||
explicit EditAddressDialog(Mode mode, QWidget *parent = nullptr);
|
||||
~EditAddressDialog();
|
||||
|
||||
void setModel(AddressTableModel *model);
|
||||
|
|
|
@ -133,7 +133,7 @@ namespace GUIUtil
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = 0);
|
||||
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = nullptr);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *evt);
|
||||
|
|
|
@ -113,7 +113,7 @@ void FreespaceChecker::check()
|
|||
Intro::Intro(QWidget *parent, uint64_t blockchain_size, uint64_t chain_state_size) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::Intro),
|
||||
thread(0),
|
||||
thread(nullptr),
|
||||
signalled(false),
|
||||
m_blockchain_size(blockchain_size),
|
||||
m_chain_state_size(chain_state_size)
|
||||
|
|
|
@ -30,7 +30,7 @@ class Intro : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Intro(QWidget *parent = 0,
|
||||
explicit Intro(QWidget *parent = nullptr,
|
||||
uint64_t blockchain_size = 0, uint64_t chain_state_size = 0);
|
||||
~Intro();
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::OptionsDialog),
|
||||
model(0),
|
||||
mapper(0)
|
||||
model(nullptr),
|
||||
mapper(nullptr)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class OptionsModel : public QAbstractListModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit OptionsModel(interfaces::Node& node, QObject *parent = 0, bool resetSettings = false);
|
||||
explicit OptionsModel(interfaces::Node& node, QObject *parent = nullptr, bool resetSettings = false);
|
||||
|
||||
enum OptionID {
|
||||
StartAtStartup, // bool
|
||||
|
|
|
@ -113,8 +113,8 @@ public:
|
|||
OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::OverviewPage),
|
||||
clientModel(0),
|
||||
walletModel(0),
|
||||
clientModel(nullptr),
|
||||
walletModel(nullptr),
|
||||
txdelegate(new TxViewDelegate(platformStyle, this))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -30,7 +30,7 @@ class OverviewPage : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
~OverviewPage();
|
||||
|
||||
void setClientModel(ClientModel *clientModel);
|
||||
|
|
|
@ -194,10 +194,10 @@ bool PaymentServer::ipcSendCommandLine()
|
|||
PaymentServer::PaymentServer(QObject* parent, bool startLocalServer) :
|
||||
QObject(parent),
|
||||
saveURIs(true),
|
||||
uriServer(0),
|
||||
optionsModel(0)
|
||||
uriServer(nullptr),
|
||||
optionsModel(nullptr)
|
||||
#ifdef ENABLE_BIP70
|
||||
,netManager(0)
|
||||
,netManager(nullptr)
|
||||
#endif
|
||||
{
|
||||
#ifdef ENABLE_BIP70
|
||||
|
|
|
@ -51,7 +51,7 @@ class PeerTableModel : public QAbstractTableModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PeerTableModel(interfaces::Node& node, ClientModel *parent = 0);
|
||||
explicit PeerTableModel(interfaces::Node& node, ClientModel *parent = nullptr);
|
||||
~PeerTableModel();
|
||||
const CNodeCombinedStats *getNodeStats(int idx);
|
||||
int getRowByNodeId(NodeId nodeid);
|
||||
|
|
|
@ -16,7 +16,7 @@ class QValueComboBox : public QComboBox
|
|||
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged USER true)
|
||||
|
||||
public:
|
||||
explicit QValueComboBox(QWidget *parent = 0);
|
||||
explicit QValueComboBox(QWidget *parent = nullptr);
|
||||
|
||||
QVariant value() const;
|
||||
void setValue(const QVariant &value);
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
ReceiveCoinsDialog::ReceiveCoinsDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ReceiveCoinsDialog),
|
||||
columnResizingFixer(0),
|
||||
model(0),
|
||||
columnResizingFixer(nullptr),
|
||||
model(nullptr),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
MINIMUM_COLUMN_WIDTH = 130
|
||||
};
|
||||
|
||||
explicit ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
~ReceiveCoinsDialog();
|
||||
|
||||
void setModel(WalletModel *model);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
QRImageWidget::QRImageWidget(QWidget *parent):
|
||||
QLabel(parent), contextMenu(0)
|
||||
QLabel(parent), contextMenu(nullptr)
|
||||
{
|
||||
contextMenu = new QMenu(this);
|
||||
QAction *saveImageAction = new QAction(tr("&Save Image..."), this);
|
||||
|
@ -88,7 +88,7 @@ void QRImageWidget::contextMenuEvent(QContextMenuEvent *event)
|
|||
ReceiveRequestDialog::ReceiveRequestDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ReceiveRequestDialog),
|
||||
model(0)
|
||||
model(nullptr)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class QRImageWidget : public QLabel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QRImageWidget(QWidget *parent = 0);
|
||||
explicit QRImageWidget(QWidget *parent = nullptr);
|
||||
QImage exportImage();
|
||||
|
||||
public Q_SLOTS:
|
||||
|
@ -48,7 +48,7 @@ class ReceiveRequestDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ReceiveRequestDialog(QWidget *parent = 0);
|
||||
explicit ReceiveRequestDialog(QWidget *parent = nullptr);
|
||||
~ReceiveRequestDialog();
|
||||
|
||||
void setModel(WalletModel *model);
|
||||
|
|
|
@ -54,8 +54,8 @@ int getIndexForConfTarget(int target) {
|
|||
SendCoinsDialog::SendCoinsDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SendCoinsDialog),
|
||||
clientModel(0),
|
||||
model(0),
|
||||
clientModel(nullptr),
|
||||
model(nullptr),
|
||||
fNewRecipientAllowed(true),
|
||||
fFeeMinimized(true),
|
||||
platformStyle(_platformStyle)
|
||||
|
@ -443,7 +443,7 @@ SendCoinsEntry *SendCoinsDialog::addEntry()
|
|||
|
||||
void SendCoinsDialog::updateTabsAndLabels()
|
||||
{
|
||||
setupTabChain(0);
|
||||
setupTabChain(nullptr);
|
||||
coinControlUpdateLabels();
|
||||
}
|
||||
|
||||
|
@ -478,7 +478,7 @@ QWidget *SendCoinsDialog::setupTabChain(QWidget *prev)
|
|||
|
||||
void SendCoinsDialog::setAddress(const QString &address)
|
||||
{
|
||||
SendCoinsEntry *entry = 0;
|
||||
SendCoinsEntry *entry = nullptr;
|
||||
// Replace the first entry if it is still unused
|
||||
if(ui->entries->count() == 1)
|
||||
{
|
||||
|
@ -501,7 +501,7 @@ void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv)
|
|||
if(!fNewRecipientAllowed)
|
||||
return;
|
||||
|
||||
SendCoinsEntry *entry = 0;
|
||||
SendCoinsEntry *entry = nullptr;
|
||||
// Replace the first entry if it is still unused
|
||||
if(ui->entries->count() == 1)
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ class SendCoinsDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
~SendCoinsDialog();
|
||||
|
||||
void setClientModel(ClientModel *clientModel);
|
||||
|
@ -108,7 +108,7 @@ class SendConfirmationDialog : public QMessageBox
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SendConfirmationDialog(const QString &title, const QString &text, int secDelay = SEND_CONFIRM_DELAY, QWidget *parent = 0);
|
||||
SendConfirmationDialog(const QString &title, const QString &text, int secDelay = SEND_CONFIRM_DELAY, QWidget *parent = nullptr);
|
||||
int exec();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QStackedWidget(parent),
|
||||
ui(new Ui::SendCoinsEntry),
|
||||
model(0),
|
||||
model(nullptr),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -26,7 +26,7 @@ class SendCoinsEntry : public QStackedWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
~SendCoinsEntry();
|
||||
|
||||
void setModel(WalletModel *model);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
SignVerifyMessageDialog::SignVerifyMessageDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SignVerifyMessageDialog),
|
||||
model(0),
|
||||
model(nullptr),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
|
||||
TrafficGraphWidget::TrafficGraphWidget(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
timer(0),
|
||||
timer(nullptr),
|
||||
fMax(0.0f),
|
||||
nMins(0),
|
||||
vSamplesIn(),
|
||||
vSamplesOut(),
|
||||
nLastBytesIn(0),
|
||||
nLastBytesOut(0),
|
||||
clientModel(0)
|
||||
clientModel(nullptr)
|
||||
{
|
||||
timer = new QTimer(this);
|
||||
connect(timer, &QTimer::timeout, this, &TrafficGraphWidget::updateRates);
|
||||
|
|
|
@ -20,7 +20,7 @@ class TrafficGraphWidget : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TrafficGraphWidget(QWidget *parent = 0);
|
||||
explicit TrafficGraphWidget(QWidget *parent = nullptr);
|
||||
void setClientModel(ClientModel *model);
|
||||
int getGraphRangeMins() const;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class TransactionDescDialog : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TransactionDescDialog(const QModelIndex &idx, QWidget *parent = 0);
|
||||
explicit TransactionDescDialog(const QModelIndex &idx, QWidget *parent = nullptr);
|
||||
~TransactionDescDialog();
|
||||
|
||||
private:
|
||||
|
|
|
@ -16,7 +16,7 @@ class TransactionFilterProxy : public QSortFilterProxyModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TransactionFilterProxy(QObject *parent = 0);
|
||||
explicit TransactionFilterProxy(QObject *parent = nullptr);
|
||||
|
||||
/** Earliest date that can be represented (far in the past) */
|
||||
static const QDateTime MIN_DATE;
|
||||
|
|
|
@ -28,7 +28,7 @@ class TransactionTableModel : public QAbstractTableModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TransactionTableModel(const PlatformStyle *platformStyle, WalletModel *parent = 0);
|
||||
explicit TransactionTableModel(const PlatformStyle *platformStyle, WalletModel *parent = nullptr);
|
||||
~TransactionTableModel();
|
||||
|
||||
enum ColumnIndex {
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
#include <QVBoxLayout>
|
||||
|
||||
TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent) :
|
||||
QWidget(parent), model(0), transactionProxyModel(0),
|
||||
transactionView(0), abandonAction(0), bumpFeeAction(0), columnResizingFixer(0)
|
||||
QWidget(parent), model(nullptr), transactionProxyModel(nullptr),
|
||||
transactionView(nullptr), abandonAction(nullptr), bumpFeeAction(nullptr), columnResizingFixer(nullptr)
|
||||
{
|
||||
// Build filter row
|
||||
setContentsMargins(0,0,0,0);
|
||||
|
|
|
@ -35,7 +35,7 @@ class TransactionView : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TransactionView(const PlatformStyle *platformStyle, QWidget *parent = 0);
|
||||
explicit TransactionView(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
|
||||
|
||||
void setModel(WalletModel *model);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class ShutdownWindow : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ShutdownWindow(QWidget *parent=0, Qt::WindowFlags f=0);
|
||||
explicit ShutdownWindow(QWidget *parent=nullptr, Qt::WindowFlags f=0);
|
||||
static QWidget *showShutdownWindow(BitcoinGUI *window);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -31,7 +31,7 @@ class WalletFrame : public QFrame
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui = 0);
|
||||
explicit WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui = nullptr);
|
||||
~WalletFrame();
|
||||
|
||||
void setClientModel(ClientModel *clientModel);
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
|
||||
|
||||
WalletModel::WalletModel(std::unique_ptr<interfaces::Wallet> wallet, interfaces::Node& node, const PlatformStyle *platformStyle, OptionsModel *_optionsModel, QObject *parent) :
|
||||
QObject(parent), m_wallet(std::move(wallet)), m_node(node), optionsModel(_optionsModel), addressTableModel(0),
|
||||
transactionTableModel(0),
|
||||
recentRequestsTableModel(0),
|
||||
QObject(parent), m_wallet(std::move(wallet)), m_node(node), optionsModel(_optionsModel), addressTableModel(nullptr),
|
||||
transactionTableModel(nullptr),
|
||||
recentRequestsTableModel(nullptr),
|
||||
cachedEncryptionStatus(Unencrypted),
|
||||
cachedNumBlocks(0)
|
||||
{
|
||||
|
|
|
@ -127,7 +127,7 @@ class WalletModel : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WalletModel(std::unique_ptr<interfaces::Wallet> wallet, interfaces::Node& node, const PlatformStyle *platformStyle, OptionsModel *optionsModel, QObject *parent = 0);
|
||||
explicit WalletModel(std::unique_ptr<interfaces::Wallet> wallet, interfaces::Node& node, const PlatformStyle *platformStyle, OptionsModel *optionsModel, QObject *parent = nullptr);
|
||||
~WalletModel();
|
||||
|
||||
enum StatusCode // Returned by sendCoins
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
|
||||
WalletView::WalletView(const PlatformStyle *_platformStyle, QWidget *parent):
|
||||
QStackedWidget(parent),
|
||||
clientModel(0),
|
||||
walletModel(0),
|
||||
clientModel(nullptr),
|
||||
walletModel(nullptr),
|
||||
platformStyle(_platformStyle)
|
||||
{
|
||||
// Create tabs
|
||||
|
|
Loading…
Add table
Reference in a new issue