summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/io_service_thread_pool.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-12-20 20:06:42 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:33:26 +0100
commit54dd674d0da13aac0cf2ca484842740477276e26 (patch)
tree884e70409a29a318cf9b038855204a8edbd042b0 /src/lib/asiolink/io_service_thread_pool.cc
parent[#3119] Fixed some coverity reported defects (diff)
downloadkea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz
kea-54dd674d0da13aac0cf2ca484842740477276e26.zip
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/lib/asiolink/io_service_thread_pool.cc')
-rw-r--r--src/lib/asiolink/io_service_thread_pool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/asiolink/io_service_thread_pool.cc b/src/lib/asiolink/io_service_thread_pool.cc
index 8919385cff..8a4488074e 100644
--- a/src/lib/asiolink/io_service_thread_pool.cc
+++ b/src/lib/asiolink/io_service_thread_pool.cc
@@ -114,7 +114,7 @@ IoServiceThreadPool::checkPermissions(State state) {
bool
IoServiceThreadPool::checkThreadId(std::thread::id id) {
- for (auto thread : threads_) {
+ for (const auto& thread : threads_) {
if (id == thread->get_id()) {
return (true);
}