mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Use MakeUnique<T>(...) instead of std::unique_ptr<T>(new T(...))
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user