refactor: clean-up some clang-tidy warnings

This commit is contained in:
CJ van den Berg 2024-08-27 19:25:19 +02:00
parent ee6b1276df
commit 858dcf09e0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 21 additions and 21 deletions

View file

@ -33,12 +33,12 @@ hub::pipe::~pipe() = default;
struct subscribe_queue : public hub::pipe {
[[nodiscard]] auto push(const handle &from, filter f) {
lock_guard<mutex> lock(m_);
const lock_guard<mutex> lock(m_);
q_.push_back(move(f));
return from.send("subscribe_filtered");
}
auto pop() -> filter {
lock_guard<mutex> lock(m_);
const lock_guard<mutex> lock(m_);
filter f = move(q_.front());
q_.pop_front();
return f;