diff options
author | Julius Huelsmann <huelsmann@campus.tu-berlin.de> | 2018-05-17 18:16:28 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-17 20:44:01 +0800 |
commit | 9e26f5fa0a956543f14dd84eb9d461ca75cce95e (patch) | |
tree | d5de11758e5f63accb9041625051d9560b6b6bfc /libsolidity/interface | |
parent | 4690f837e0389cff5f11a320a08aeb54d752f087 (diff) | |
download | dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.gz dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.bz2 dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.lz dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.xz dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.zst dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.zip |
Do not catch exceptions by value in StandardCompiler
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index ee9b1440..c8d43e9f 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -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", |