GH-2277 fix even more exception catches by value

This commit is contained in:
Petr Mrázek committed 2018-05-20 01:53:05 +02:00
1 parent 72c0002b45
commit f0ff2db4e1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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_;
}
+1 -1
View File
@@ -70,7 +70,7 @@ QString GetMinecraftJarVersion(QString jarName)
}
}
}
catch (java::classfile_exception) { }
catch (const java::classfile_exception &) { }
// clean up
delete[] classfile;