mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
/**
|
||||
@@ -472,7 +470,7 @@ UniValue setmocktime(const JSONRPCRequest& request)
|
||||
// ensure all call sites of GetTime() are accessing this safely.
|
||||
LOCK(cs_main);
|
||||
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VNUM));
|
||||
RPCTypeCheck(request.params, {UniValue::VNUM});
|
||||
SetMockTime(request.params[0].get_int64());
|
||||
|
||||
return NullUniValue;
|
||||
|
||||
Reference in New Issue
Block a user