From 6c2cf7384a2c6673923228bf3f16274af68e3bac Mon Sep 17 00:00:00 2001 From: R4SAS Date: Thu, 13 Apr 2017 18:57:42 +0300 Subject: [PATCH] replace auto_ptr to unique_ptr, delete .gitmodules --- .gitmodules | 0 src/main.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.cpp b/src/main.cpp index dbd9fa4..1805967 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4349,7 +4349,7 @@ public: CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) { // Create new block - auto_ptr pblocktemplate(new CBlockTemplate()); + unique_ptr pblocktemplate(new CBlockTemplate()); if(!pblocktemplate.get()) return NULL; CBlock *pblock = &pblocktemplate->block; // pointer for convenience @@ -4718,7 +4718,7 @@ void static GostcoinMiner(CWallet *pwallet) unsigned int nTransactionsUpdatedLast = nTransactionsUpdated; CBlockIndex* pindexPrev = pindexBest; - auto_ptr pblocktemplate(CreateNewBlockWithKey(reservekey)); + unique_ptr pblocktemplate(CreateNewBlockWithKey(reservekey)); if (!pblocktemplate.get()) return; CBlock *pblock = &pblocktemplate->block;