auto_ptr → unique_ptr
This commit is contained in:
committed by
lateminer
parent
b8609fc6e3
commit
fb6d61317d
@@ -96,7 +96,7 @@ int64_t GetMaxTransactionTime(CBlock* pblock)
|
||||
CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& scriptPubKeyIn, int64_t* pFees, bool fProofOfStake)
|
||||
{
|
||||
// Create new block
|
||||
auto_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());
|
||||
std::unique_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());
|
||||
if(!pblocktemplate.get())
|
||||
return NULL;
|
||||
CBlock *pblock = &pblocktemplate->block; // pointer for convenience
|
||||
|
||||
Reference in New Issue
Block a user