Replace unnecessary loop (#1105)

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-08-05 07:45:32 -07:00
committed by GitHub
parent 965260e3cb
commit ee8124ed7a

View File

@ -364,10 +364,8 @@ String UserTextIdentificationFrame::toString() const
{
// first entry is the description itself, drop from values list
StringList l = fieldList();
for(auto it = l.begin(); it != l.end(); ++it) {
l.erase(it);
break;
}
if(!l.isEmpty())
l.erase(l.begin());
return "[" + description() + "] " + l.toString();
}