From 7939a23e3b9e643c2917b204f60151ffeae9e3e6 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Tue, 16 Jan 2018 08:30:52 +0100 Subject: [PATCH] Use std::move when calling MakeTransactionRef --- src/chainparams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 17c46f500..8113a802d 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -57,7 +57,7 @@ static CBlock CreateDevNetGenesisBlock(const uint256 &prevBlockHash, const std:: genesis.nBits = nBits; genesis.nNonce = nNonce; genesis.nVersion = nVersion; - genesis.vtx.push_back(MakeTransactionRef(txNew)); + genesis.vtx.push_back(MakeTransactionRef(std::move(txNew))); genesis.hashPrevBlock = prevBlockHash; genesis.hashMerkleRoot = BlockMerkleRoot(genesis); return genesis;