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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user