From 23b8784fd656afb866a78784afafadf05a8b95cd Mon Sep 17 00:00:00 2001 From: Daniel Hams Date: Wed, 19 Feb 2014 18:34:03 +0000 Subject: [PATCH] Use make_pair in place of std::pair. --- libethereum/State.cpp | 2 +- libethereum/State.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libethereum/State.cpp b/libethereum/State.cpp index 7d4aa4177..9f2537871 100644 --- a/libethereum/State.cpp +++ b/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(stack.back(), stack[stack.size() - 2])); + tempMem.insert(make_pair(stack.back(), stack[stack.size() - 2])); else mFinder->second = stack[stack.size() - 2]; #else diff --git a/libethereum/State.h b/libethereum/State.h index 2753f5549..23d5fbbc3 100644 --- a/libethereum/State.h +++ b/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(j.first, RLP(j.second).toInt())); + mem.insert(std::make_pair(j.first, RLP(j.second).toInt())); else mFinder->second = RLP(j.second).toInt(); #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(j.first, RLP(j.second).toInt())); + mem.insert(std::make_pair(j.first, RLP(j.second).toInt())); else mFinder->second = RLP(j.second).toInt(); #else