Merge pull request #6490 from g-r-a-n-t/pass-large-strings-by-value

Pass large strings by value
This commit is contained in:
chriseth
2019-04-17 14:40:39 +02:00
committed by GitHub
10 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -83,10 +83,10 @@ Json::Value getContractResult(Json::Value const& _compilerResult, string const&
return _compilerResult["contracts"][_file][_name];
}
Json::Value compile(string const& _input)
Json::Value compile(string _input)
{
StandardCompiler compiler;
string output = compiler.compile(_input);
string output = compiler.compile(std::move(_input));
Json::Value ret;
BOOST_REQUIRE(jsonParseStrict(output, ret));
return ret;