Fix missing return in ensureDouble()
This commit is contained in:
1 parent
d11f10ea1e
commit
de2eb3fc54
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user