Auto_ptr deprecated
authorsvost <ya.nowa@yandex.ru>
Thu, 7 Apr 2016 05:57:22 +0000 (08:57 +0300)
committersvost <ya.nowa@yandex.ru>
Thu, 7 Apr 2016 05:57:22 +0000 (08:57 +0300)
src/miner.cpp

index dd75386..7421aa3 100644 (file)
@@ -107,7 +107,7 @@ CBlock* CreateNewBlock(CWallet* pwallet, CTransaction *txCoinStake)
     bool fProofOfStake = txCoinStake != NULL;
 
     // Create new block
-    auto_ptr<CBlock> pblock(new CBlock());
+    unique_ptr<CBlock> pblock(new CBlock());
     if (!pblock.get())
         return NULL;