summaryrefslogtreecommitdiffstats
path: root/logic/MMCJson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/MMCJson.cpp')
-rw-r--r--logic/MMCJson.cpp2
1 files changed, 1 insertions, 1 deletions
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)