use structured binding declarations
Shorter. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Max Kellermann
parent
da642b2890
commit
44378b7dbe
@@ -60,10 +60,7 @@ main(int argc, char **argv)
|
||||
|
||||
char first = 0;
|
||||
|
||||
for (const auto &i : names) {
|
||||
const std::string_view name = i.first;
|
||||
const TagType tag = i.second;
|
||||
|
||||
for (const auto &[name, tag] : names) {
|
||||
if (name.front() != first) {
|
||||
if (first != 0)
|
||||
fprintf(out, " break;\n\n");
|
||||
|
||||
Reference in New Issue
Block a user