aboutsummaryrefslogtreecommitdiff
path: root/api/logic/Json.h
diff options
context:
space:
mode:
authorCharles Milette <me@charlesmilette.net>2018-05-19 19:18:26 -0400
committerCharles Milette <me@charlesmilette.net>2018-05-19 19:18:26 -0400
commit72c0002b45215466e06cd901fe95d9493d659ab2 (patch)
tree03a56f2da0f1ed34a219941060ec2100aedf1ac6 /api/logic/Json.h
parentb9fd381eee2f7c87e7645046b26dd552dc3cae5c (diff)
downloadPrismLauncher-72c0002b45215466e06cd901fe95d9493d659ab2.tar.gz
PrismLauncher-72c0002b45215466e06cd901fe95d9493d659ab2.tar.bz2
PrismLauncher-72c0002b45215466e06cd901fe95d9493d659ab2.zip
Catch C++ exceptions by const reference
Fixes #2277
Diffstat (limited to 'api/logic/Json.h')
-rw-r--r--api/logic/Json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/Json.h b/api/logic/Json.h
index e59b25de..321007cd 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 (JsonException)
{
return default_;
}