auto_ptr → unique_ptr

This commit is contained in:
Wladimir J. van der Laan
2016-04-28 13:40:20 +02:00
committed by lateminer
parent b8609fc6e3
commit fb6d61317d
3 changed files with 4 additions and 4 deletions

View File

@@ -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