mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Handle empty Json values:
* Replace Json::Value::isNull() and Json::Value::empty with operator bool()
This commit is contained in:
committed by
Nik Bougalis
parent
a5a9242f4e
commit
9111ad1a9d
@@ -532,7 +532,7 @@ static boost::optional<detail::STVar> parseLeaf (
|
||||
AccountID uAccount, uIssuer;
|
||||
Currency uCurrency;
|
||||
|
||||
if (! account.isNull ())
|
||||
if (account)
|
||||
{
|
||||
// human account id
|
||||
if (! account.isString ())
|
||||
@@ -556,7 +556,7 @@ static boost::optional<detail::STVar> parseLeaf (
|
||||
}
|
||||
}
|
||||
|
||||
if (!currency.isNull ())
|
||||
if (currency)
|
||||
{
|
||||
// human currency
|
||||
if (!currency.isString ())
|
||||
@@ -577,7 +577,7 @@ static boost::optional<detail::STVar> parseLeaf (
|
||||
}
|
||||
}
|
||||
|
||||
if (!issuer.isNull ())
|
||||
if (issuer)
|
||||
{
|
||||
// human account id
|
||||
if (!issuer.isString ())
|
||||
|
||||
Reference in New Issue
Block a user