Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Remove some redundant std::
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Jul 9, 2019
1 parent 50c7156 commit 0554648
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libethereum/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ Account* State::account(Address const& _addr)
// version is 0 if absent from RLP
auto const version = state[4] ? state[4].toInt<u256>() : 0;

auto i = m_cache.emplace(std::piecewise_construct, std::forward_as_tuple(_addr),
std::forward_as_tuple(nonce, balance, storageRoot, codeHash, version, Account::Unchanged));
auto i = m_cache.emplace(piecewise_construct, forward_as_tuple(_addr),
forward_as_tuple(nonce, balance, storageRoot, codeHash, version, Account::Unchanged));
m_unchangedCacheEntries.push_back(_addr);
return &i.first->second;
}
Expand Down Expand Up @@ -526,7 +526,7 @@ void State::setCode(Address const& _address, bytes&& _code, u256 const& _version
// (not allowed in contract creation logic in Executive)
assert(!addressHasCode(_address));
m_changeLog.emplace_back(Change::Code, _address);
m_cache[_address].setCode(std::move(_code), _version);
m_cache[_address].setCode(move(_code), _version);
}

h256 State::codeHash(Address const& _a) const
Expand Down

0 comments on commit 0554648

Please sign in to comment.