mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
GH-2277 fix even more exception catches by value
This commit is contained in:
parent
72c0002b45
commit
f0ff2db4e1
@ -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_;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ QString GetMinecraftJarVersion(QString jarName)
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (java::classfile_exception) { }
|
||||
catch (const java::classfile_exception &) { }
|
||||
|
||||
// clean up
|
||||
delete[] classfile;
|
||||
|
Loading…
Reference in New Issue
Block a user