mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-18 16:42:54 +01:00
Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)
Qt-only changes.
This commit is contained in:
committed by
Ben Woosley
parent
84d0fdce11
commit
9096276e0b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user