mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some move semantics improvements.
This commit is contained in:
+2
-2
@@ -72,10 +72,10 @@ ReadCallback::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = n
|
||||
return readCallback;
|
||||
}
|
||||
|
||||
string compile(string const& _input, CStyleReadFileCallback _readCallback = nullptr)
|
||||
string compile(string _input, CStyleReadFileCallback _readCallback = nullptr)
|
||||
{
|
||||
StandardCompiler compiler(wrapReadCallback(_readCallback));
|
||||
return compiler.compile(_input);
|
||||
return compiler.compile(std::move(_input));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user