Use asBool() instead of getBool() to get value of uniqueItems constraint

This commit is contained in:
Tristan Penman 2016-01-14 21:41:17 +11:00
parent 476d2c645a
commit 29367ccf0b

View File

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