GH-2277 fix even more exception catches by value

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

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_;
}

View File

@ -70,7 +70,7 @@ QString GetMinecraftJarVersion(QString jarName)
}
}
}
catch (java::classfile_exception) { }
catch (const java::classfile_exception &) { }
// clean up
delete[] classfile;