Remove one range-based for loop
This commit is contained in:
parent
5def8f2a86
commit
6923b13394
|
@ -26,7 +26,9 @@ struct Scanner {
|
||||||
|
|
||||||
unsigned serialize(char *buffer) {
|
unsigned serialize(char *buffer) {
|
||||||
unsigned i = 0;
|
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);
|
buffer[i] = static_cast<char>(tag.type);
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue