summaryrefslogtreecommitdiffstats
path: root/logic/MMCJson.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-10 20:18:01 +0100
committerPetr Mrázek <peterix@gmail.com>2014-03-10 20:18:01 +0100
commitde2eb3fc5404cbbfd438919c250885e5e8450a82 (patch)
tree065f1cf2a778448bfc5396c6fe333d3a2fde09a2 /logic/MMCJson.cpp
parentd11f10ea1ed54336254838ff068258d2d42e0774 (diff)
downloadMultiMC-de2eb3fc5404cbbfd438919c250885e5e8450a82.tar
MultiMC-de2eb3fc5404cbbfd438919c250885e5e8450a82.tar.gz
MultiMC-de2eb3fc5404cbbfd438919c250885e5e8450a82.tar.lz
MultiMC-de2eb3fc5404cbbfd438919c250885e5e8450a82.tar.xz
MultiMC-de2eb3fc5404cbbfd438919c250885e5e8450a82.zip
Fix missing return in ensureDouble()
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)