mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
refactor: Make move semantics explicit for callers
This commit is contained in:
@@ -166,7 +166,7 @@ public:
|
||||
}
|
||||
|
||||
//! Add a batch of checks to the queue
|
||||
void Add(std::vector<T>& vChecks) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
||||
void Add(std::vector<T>&& vChecks) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
||||
{
|
||||
if (vChecks.empty()) {
|
||||
return;
|
||||
@@ -237,10 +237,11 @@ public:
|
||||
return fRet;
|
||||
}
|
||||
|
||||
void Add(std::vector<T>& vChecks)
|
||||
void Add(std::vector<T>&& vChecks)
|
||||
{
|
||||
if (pqueue != nullptr)
|
||||
pqueue->Add(vChecks);
|
||||
if (pqueue != nullptr) {
|
||||
pqueue->Add(std::move(vChecks));
|
||||
}
|
||||
}
|
||||
|
||||
~CCheckQueueControl()
|
||||
|
||||
Reference in New Issue
Block a user