Browse Source

Use make_pair in place of std::pair.

cl-refactor
Daniel Hams 11 years ago
parent
commit
23b8784fd6
  1. 2
      libethereum/State.cpp
  2. 4
      libethereum/State.h

2
libethereum/State.cpp

@ -1189,7 +1189,7 @@ void State::execute(Address _myAddress, Address _txSender, u256 _txValue, u256s
#ifdef __clang__
auto mFinder = tempMem.find(stack.back());
if (mFinder == tempMem.end())
tempMem.insert(std::pair<u256,u256>(stack.back(), stack[stack.size() - 2]));
tempMem.insert(make_pair(stack.back(), stack[stack.size() - 2]));
else
mFinder->second = stack[stack.size() - 2];
#else

4
libethereum/State.h

@ -275,7 +275,7 @@ inline std::ostream& operator<<(std::ostream& _out, State const& _s)
#ifdef __clang__
auto mFinder = mem.find(j.first);
if (mFinder == mem.end())
mem.insert(std::pair<u256,u256>(j.first, RLP(j.second).toInt<u256>()));
mem.insert(std::make_pair(j.first, RLP(j.second).toInt<u256>()));
else
mFinder->second = RLP(j.second).toInt<u256>();
#else
@ -312,7 +312,7 @@ inline std::ostream& operator<<(std::ostream& _out, State const& _s)
#ifdef __clang__
auto mFinder = mem.find(j.first);
if (mFinder == mem.end())
mem.insert(std::pair<u256,u256>(j.first, RLP(j.second).toInt<u256>()));
mem.insert(std::make_pair(j.first, RLP(j.second).toInt<u256>()));
else
mFinder->second = RLP(j.second).toInt<u256>();
#else

Loading…
Cancel
Save