Remove one range-based for loop

This commit is contained in:
Max Brunsfeld 2018-06-15 15:30:43 -07:00
parent 5def8f2a86
commit 6923b13394
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ struct Scanner {
unsigned serialize(char *buffer) {
unsigned i = 0;
for (Tag &tag : tags) {
for (unsigned j = 0, n = tags.size(); j < n; j++) {
Tag &tag = tags[j];
buffer[i] = static_cast<char>(tag.type);
i++;