aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorwhythat <yuri.zhykin@gmail.com>2016-07-19 02:15:59 +0300
committerwhythat <yuri.zhykin@gmail.com>2016-08-09 03:11:45 +0300
commitc78408607536bf030947f69f6dc6e09e07873c84 (patch)
tree0142781d524ac9bdb045ddf076d102e15b5d2828 /src/rpc/server.cpp
parent5e187e70012c247b96783f7fa9bcbd0289504ad5 (diff)
downloadbitcoin-c78408607536bf030947f69f6dc6e09e07873c84.tar.xz
use std::map::emplace() instead of std::map::insert()
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index 4b594f5fa6..5fb97f7496 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -491,7 +491,7 @@ void RPCRunLater(const std::string& name, boost::function<void(void)> func, int6
throw JSONRPCError(RPC_INTERNAL_ERROR, "No timer handler registered for RPC");
deadlineTimers.erase(name);
LogPrint("rpc", "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name());
- deadlineTimers.insert(std::make_pair(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000))));
+ deadlineTimers.emplace(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000)));
}
CRPCTable tableRPC;