diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-12-20 20:06:42 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2024-01-22 16:33:26 +0100 |
commit | 54dd674d0da13aac0cf2ca484842740477276e26 (patch) | |
tree | 884e70409a29a318cf9b038855204a8edbd042b0 /src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc | |
parent | [#3119] Fixed some coverity reported defects (diff) | |
download | kea-54dd674d0da13aac0cf2ca484842740477276e26.tar.xz kea-54dd674d0da13aac0cf2ca484842740477276e26.zip |
[#3119] use auto const& whenever possible
Diffstat (limited to 'src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc')
-rw-r--r-- | src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc b/src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc index 36df83e94d..2fb05645f8 100644 --- a/src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc +++ b/src/hooks/dhcp/high_availability/libloadtests/close_unittests.cc @@ -243,7 +243,7 @@ CloseHATest::runPartners(bool const backup /* = true */) { if (accept_partner2 > nfd) { nfd = accept_partner2; } - for (auto reader : readers) { + for (auto const& reader : readers) { if (!reader.second) { continue; } @@ -285,7 +285,7 @@ CloseHATest::runPartners(bool const backup /* = true */) { readers[fd] = true; } } - for (auto reader : readers) { + for (auto const& reader : readers) { if (!reader.second) { continue; } @@ -314,7 +314,7 @@ CloseHATest::runPartners(bool const backup /* = true */) { if (accept_partner2 >= 0) { close(accept_partner2); } - for (auto reader : readers) { + for (auto const& reader : readers) { if (!reader.second) { continue; } |