From de2eb3fc5404cbbfd438919c250885e5e8450a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 10 Mar 2014 20:18:01 +0100 Subject: [PATCH] Fix missing return in ensureDouble() --- logic/MMCJson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/MMCJson.cpp b/logic/MMCJson.cpp index 25cc2de3..65423436 100644 --- a/logic/MMCJson.cpp +++ b/logic/MMCJson.cpp @@ -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)