diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-05-20 01:53:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-05-20 01:53:05 +0200 |
commit | f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a (patch) | |
tree | 9d3f1326800ee48a65a4cbe24dfcd5e78adbf9c9 /api/logic | |
parent | 72c0002b45215466e06cd901fe95d9493d659ab2 (diff) | |
download | MultiMC-f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a.tar MultiMC-f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a.tar.gz MultiMC-f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a.tar.lz MultiMC-f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a.tar.xz MultiMC-f0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a.zip |
GH-2277 fix even more exception catches by value
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/Json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/Json.h b/api/logic/Json.h index 321007cd..a84d204a 100644 --- a/api/logic/Json.h +++ b/api/logic/Json.h @@ -123,7 +123,7 @@ T ensureIsType(const QJsonValue &value, const T default_ = T(), const QString &w { return requireIsType<T>(value, what); } - catch (JsonException) + catch (const JsonException &) { return default_; } |