mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-03 00:10:52 +02: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:
parent
e9035f867a
commit
6b24dfe24d
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user