mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
Replace remaining 0 with nullptr in Qt code
Also used type-appropriate enum values such as Qt::NoItemFlags in some cases. All cases identified via -Wzero-as-null-pointer-constant
This commit is contained in:
@@ -196,7 +196,7 @@ protected:
|
||||
if (text().isEmpty()) // Allow step-up with empty field
|
||||
return StepUpEnabled;
|
||||
|
||||
StepEnabled rv = 0;
|
||||
StepEnabled rv = StepNone;
|
||||
bool valid = false;
|
||||
CAmount val = value(&valid);
|
||||
if (valid) {
|
||||
@@ -216,7 +216,7 @@ Q_SIGNALS:
|
||||
|
||||
BitcoinAmountField::BitcoinAmountField(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
amount(0)
|
||||
amount(nullptr)
|
||||
{
|
||||
amount = new AmountSpinBox(this);
|
||||
amount->setLocale(QLocale::c());
|
||||
|
||||
Reference in New Issue
Block a user