Fix missing return in ensureDouble()
This commit is contained in:
parent
d11f10ea1e
commit
de2eb3fc54
@ -27,7 +27,7 @@ double MMCJson::ensureDouble(const QJsonValue val, const QString what)
|
||||
{
|
||||
if (!val.isDouble())
|
||||
throw JSONValidationError(what + " is not a number");
|
||||
double ret = val.toDouble();
|
||||
return val.toDouble();
|
||||
}
|
||||
|
||||
int MMCJson::ensureInteger(const QJsonValue val, const QString what)
|
||||
|
Loading…
Reference in New Issue
Block a user