aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorJulius Huelsmann <huelsmann@campus.tu-berlin.de>2018-05-17 18:16:28 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-17 20:44:01 +0800
commit9e26f5fa0a956543f14dd84eb9d461ca75cce95e (patch)
treed5de11758e5f63accb9041625051d9560b6b6bfc /libsolidity/interface/StandardCompiler.cpp
parent4690f837e0389cff5f11a320a08aeb54d752f087 (diff)
downloaddexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.gz
dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.tar.zst
dexon-solidity-9e26f5fa0a956543f14dd84eb9d461ca75cce95e.zip
Do not catch exceptions by value in StandardCompiler
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp4
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",