diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-10 20:18:01 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-10 20:18:01 +0100 |
commit | de2eb3fc5404cbbfd438919c250885e5e8450a82 (patch) | |
tree | 065f1cf2a778448bfc5396c6fe333d3a2fde09a2 /logic | |
parent | d11f10ea1ed54336254838ff068258d2d42e0774 (diff) | |
download | MultiMC-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')
-rw-r--r-- | logic/MMCJson.cpp | 2 |
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) |