2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[#3119] use range based for loop or BOOST_FOREACH

This commit is contained in:
Razvan Becheriu
2024-01-12 16:31:50 +02:00
parent 72f330320b
commit 1b4d7b0293
233 changed files with 2207 additions and 2618 deletions

View File

@@ -4077,13 +4077,12 @@ idToText(const OptionBuffer& id) {
std::stringstream tmp;
tmp << std::hex;
bool delim = false;
for (std::vector<uint8_t>::const_iterator it = id.begin();
it != id.end(); ++it) {
for (auto const& it : id) {
if (delim) {
tmp << ":";
}
tmp << std::setw(2) << std::setfill('0')
<< static_cast<unsigned int>(*it);
<< static_cast<unsigned int>(it);
delim = true;
}
return (tmp.str());