Skip to content

Commit a78137c

Browse files
committed
make member function const
Apply clang-tidy's readability-make-member-function-const fixit.
1 parent ca3226e commit a78137c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/mp/proxy-io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class EventLoop
172172
void addClient(std::unique_lock<std::mutex>& lock);
173173
bool removeClient(std::unique_lock<std::mutex>& lock);
174174
//! Check if loop should exit.
175-
bool done(std::unique_lock<std::mutex>& lock);
175+
bool done(std::unique_lock<std::mutex>& lock) const;
176176

177177
Logger log()
178178
{

src/mp/proxy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void EventLoop::startAsyncThread(std::unique_lock<std::mutex>& lock)
277277
}
278278
}
279279

280-
bool EventLoop::done(std::unique_lock<std::mutex>& lock)
280+
bool EventLoop::done(std::unique_lock<std::mutex>& lock) const
281281
{
282282
assert(m_num_clients >= 0);
283283
assert(lock.owns_lock());

0 commit comments

Comments
 (0)