aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ErrorCheck.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-25 02:22:26 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-11-25 02:22:26 +0800
commita81f5563022e409d3e54e70177f2073c698c2238 (patch)
tree84f6e110d1af784caf946340de989b80bd9d9859 /test/libsolidity/ErrorCheck.cpp
parent384c4546f172f8a0615036be9555774de6592fbc (diff)
downloaddexon-solidity-a81f5563022e409d3e54e70177f2073c698c2238.tar.gz
dexon-solidity-a81f5563022e409d3e54e70177f2073c698c2238.tar.zst
dexon-solidity-a81f5563022e409d3e54e70177f2073c698c2238.zip
test: various fixes
Diffstat (limited to 'test/libsolidity/ErrorCheck.cpp')
-rw-r--r--test/libsolidity/ErrorCheck.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/ErrorCheck.cpp b/test/libsolidity/ErrorCheck.cpp
index 6dddda70..75555c9b 100644
--- a/test/libsolidity/ErrorCheck.cpp
+++ b/test/libsolidity/ErrorCheck.cpp
@@ -24,9 +24,11 @@
#include <string>
+using namespace std;
+
bool dev::solidity::searchErrorMessage(Error const& _err, std::string const& _substr)
{
- if (const std::string* errorMessage = boost::get_error_info<dev::errinfo_comment>(_err))
+ if (string const* errorMessage = boost::get_error_info<dev::errinfo_comment>(_err))
return errorMessage->find(_substr) != std::string::npos;
return _substr.empty();
}