Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)

Qt-only changes.
This commit is contained in:
practicalswift
2018-07-30 12:37:09 +02:00
committed by Ben Woosley
parent 84d0fdce11
commit 9096276e0b
52 changed files with 90 additions and 90 deletions

View File

@@ -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);