diff options
author | Gav Wood <g@ethdev.com> | 2015-07-07 01:04:35 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-07-07 01:04:35 +0800 |
commit | 289534d5a0b936d3f51c716dd13cd35d731b1646 (patch) | |
tree | 0444389358a1c1b6a0342f6663130617a773f857 | |
parent | cb02917380d236618df7a915813bc5f8a7bbf5aa (diff) | |
parent | befbeba512701bbed29dc3cf7e630789d0600822 (diff) | |
download | dexon-solidity-289534d5a0b936d3f51c716dd13cd35d731b1646.tar.gz dexon-solidity-289534d5a0b936d3f51c716dd13cd35d731b1646.tar.zst dexon-solidity-289534d5a0b936d3f51c716dd13cd35d731b1646.zip |
Merge pull request #2387 from chfast/fixes
Fix up rvalue references
-rw-r--r-- | TestHelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index b3dee72e..9a1b1693 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -199,10 +199,10 @@ void ImportTest::importState(json_spirit::mObject& _o, State& _state, stateOptio stateOptions.m_bHasCode = true; } - if (code.size()) + if (!code.empty()) { _state.m_cache[address] = Account(balance, Account::ContractConception); - _state.m_cache[address].setCode(code); + _state.m_cache[address].setCode(std::move(code)); } else _state.m_cache[address] = Account(balance, Account::NormalCreation); |