Pass by reference in fuzzer

This commit is contained in:
Alex Beregszaszi 2019-01-29 16:09:09 +00:00
parent c537321309
commit 0e2b43e141
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ using namespace std;
using namespace dev;
using namespace dev::eth;
void FuzzerUtil::runCompiler(string _input, bool _quiet)
void FuzzerUtil::runCompiler(string const& _input, bool _quiet)
{
if (!_quiet)
cout << "Input JSON: " << _input << endl;

View File

@ -28,7 +28,7 @@
struct FuzzerUtil
{
static void runCompiler(std::string _input, bool _quiet);
static void runCompiler(std::string const& _input, bool _quiet);
static void testCompiler(std::string const& _input, bool _optimize, bool _quiet);
static void testConstantOptimizer(std::string const& _input, bool _quiet);
static void testStandardCompiler(std::string const& _input, bool _quiet);