aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-08-15 07:46:56 +0200
committerpracticalswift <[email protected]>2017-11-09 16:53:34 +0100
commit3e09b390b411298b9da8cc3f92132bfad15ac156 (patch)
tree034c464e339d74d67ee61f32ca23e82cb03b3d21 /src/httprpc.cpp
parentAdd MakeUnique (substitute for C++14 std::make_unique) (diff)
downloaddiscoin-3e09b390b411298b9da8cc3f92132bfad15ac156.tar.xz
discoin-3e09b390b411298b9da8cc3f92132bfad15ac156.zip
Use MakeUnique<T>(...) instead of std::unique_ptr<T>(new T(...))
Diffstat (limited to 'src/httprpc.cpp')
-rw-r--r--src/httprpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index 3b675b88e..dbd09595c 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -238,7 +238,7 @@ bool StartHTTPRPC()
RegisterHTTPHandler("/wallet/", false, HTTPReq_JSONRPC);
#endif
assert(EventBase());
- httpRPCTimerInterface = std::unique_ptr<HTTPRPCTimerInterface>(new HTTPRPCTimerInterface(EventBase()));
+ httpRPCTimerInterface = MakeUnique<HTTPRPCTimerInterface>(EventBase());
RPCSetTimerInterface(httpRPCTimerInterface.get());
return true;
}