We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9035f8 commit 6b24dfeCopy full SHA for 6b24dfe
src/chain.cpp
@@ -49,7 +49,7 @@ std::vector<uint256> LocatorEntries(const CBlockIndex* index)
49
50
CBlockLocator GetLocator(const CBlockIndex* index)
51
{
52
- return CBlockLocator{std::move(LocatorEntries(index))};
+ return CBlockLocator{LocatorEntries(index)};
53
}
54
55
CBlockLocator CChain::GetLocator() const
src/primitives/block.h
@@ -123,7 +123,7 @@ struct CBlockLocator
123
124
CBlockLocator() {}
125
126
- explicit CBlockLocator(const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
+ explicit CBlockLocator(std::vector<uint256>&& have) : vHave(std::move(have)) {}
127
128
SERIALIZE_METHODS(CBlockLocator, obj)
129
0 commit comments