mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 18:20:27 +01:00
Use asBool() instead of getBool() to get value of uniqueItems constraint
This commit is contained in:
parent
476d2c645a
commit
29367ccf0b
@ -1323,7 +1323,7 @@ private:
|
||||
// If the boolean value is true, this function will return a pointer
|
||||
// to a new UniqueItemsConstraint object. If it is value, then the
|
||||
// constraint is redundant, so NULL is returned instead.
|
||||
if (node.getBool()) {
|
||||
if (node.asBool()) {
|
||||
return new constraints::UniqueItemsConstraint();
|
||||
} else {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user