Do not catch exceptions by value in StandardCompiler

This commit is contained in:
Julius Huelsmann 2018-05-17 12:16:28 +02:00 committed by Alex Beregszaszi
parent 4690f837e0
commit 9e26f5fa0a

View File

@ -117,7 +117,7 @@ bool hashMatchesContent(string const& _hash, string const& _content)
{
return dev::h256(_hash) == dev::keccak256(_content);
}
catch (dev::BadHexCharacter)
catch (dev::BadHexCharacter const&)
{
return false;
}
@ -366,7 +366,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
// @TODO use libraries only for the given source
libraries[library] = h160(address);
}
catch (dev::BadHexCharacter)
catch (dev::BadHexCharacter const&)
{
return formatFatalError(
"JSONError",