aboutsummaryrefslogtreecommitdiff
path: root/src/checkqueue.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-03-21 13:04:01 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-03-21 13:04:01 +0000
commit04831fee6dca3eb86cd1d6b9ef879b296263fe35 (patch)
tree546cd9925aada5ac2f984ba52af68e80184a9d62 /src/checkqueue.h
parent6c2d5972f3544c4f3e987828a99e88f27b62cf87 (diff)
refactor: Make move semantics explicit for callers
Diffstat (limited to 'src/checkqueue.h')
-rw-r--r--src/checkqueue.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/checkqueue.h b/src/checkqueue.h
index 63628860c5..a4818ad44f 100644
--- a/src/checkqueue.h
+++ b/src/checkqueue.h
@@ -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()