use structured binding declarations

Shorter.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-10-22 01:36:13 -07:00
committed by Max Kellermann
parent da642b2890
commit 44378b7dbe
14 changed files with 45 additions and 57 deletions
+1 -4
View File
@@ -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");