0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

CBlockLocator: performance-move-const-arg Clang tidy fixups

Co-authored-by: "Pieter Wuille <pieter@wuille.net>"
Co-authored-by: "Vasil Dimov <vd@FreeBSD.org>"
Co-authored-by: "MarcoFalke <falke.marco@gmail.com>"
This commit is contained in:
Jon Atack 2022-08-31 13:07:55 +02:00
parent e9035f867a
commit 6b24dfe24d
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ std::vector<uint256> LocatorEntries(const CBlockIndex* index)
CBlockLocator GetLocator(const CBlockIndex* index)
{
return CBlockLocator{std::move(LocatorEntries(index))};
return CBlockLocator{LocatorEntries(index)};
}
CBlockLocator CChain::GetLocator() const

View file

@ -123,7 +123,7 @@ struct CBlockLocator
CBlockLocator() {}
explicit CBlockLocator(const std::vector<uint256>& vHaveIn) : vHave(vHaveIn) {}
explicit CBlockLocator(std::vector<uint256>&& have) : vHave(std::move(have)) {}
SERIALIZE_METHODS(CBlockLocator, obj)
{