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

Commit 43e2dfb

Browse files
committed
Remove some redundant std::
1 parent 71df687 commit 43e2dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libethereum/State.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ Account* State::account(Address const& _addr)
175175
// version is 0 if absent from RLP
176176
auto const version = state[4] ? state[4].toInt<u256>() : 0;
177177

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

532532
h256 State::codeHash(Address const& _a) const

0 commit comments

Comments
 (0)