Fix missing return in ensureDouble()

This commit is contained in:
Petr Mrázek 2014-03-10 20:18:01 +01:00
parent d11f10ea1e
commit de2eb3fc54

View File

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