mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 18:26:51 +00:00
chore: Enable clang-tidy misc checks (#6655)
This commit is contained in:
@@ -56,7 +56,7 @@ private:
|
||||
using boost::asio::buffer;
|
||||
using boost::asio::buffer_copy;
|
||||
using boost::asio::buffer_size;
|
||||
boost::asio::const_buffer buf(s.data(), s.size());
|
||||
boost::asio::const_buffer const buf(s.data(), s.size());
|
||||
sb.commit(buffer_copy(sb.prepare(buffer_size(buf)), buf));
|
||||
}
|
||||
|
||||
@@ -100,14 +100,14 @@ private:
|
||||
void
|
||||
add(std::shared_ptr<Child> const& child)
|
||||
{
|
||||
std::lock_guard lock(mutex_);
|
||||
std::lock_guard const lock(mutex_);
|
||||
list_.emplace(child.get(), child);
|
||||
}
|
||||
|
||||
void
|
||||
remove(Child* child)
|
||||
{
|
||||
std::lock_guard lock(mutex_);
|
||||
std::lock_guard const lock(mutex_);
|
||||
list_.erase(child);
|
||||
if (list_.empty())
|
||||
cond_.notify_one();
|
||||
@@ -118,7 +118,7 @@ private:
|
||||
{
|
||||
std::vector<std::shared_ptr<Child>> v;
|
||||
{
|
||||
std::lock_guard lock(mutex_);
|
||||
std::lock_guard const lock(mutex_);
|
||||
v.reserve(list_.size());
|
||||
if (closed_)
|
||||
return;
|
||||
@@ -636,7 +636,7 @@ public:
|
||||
void
|
||||
run() override
|
||||
{
|
||||
Server s(*this);
|
||||
Server const s(*this);
|
||||
Client c(*this, s.endpoint());
|
||||
c.wait();
|
||||
pass();
|
||||
|
||||
Reference in New Issue
Block a user