This commit is contained in:
UKABUER 2020-01-09 22:56:43 +08:00 committed by Daniel Lemire
parent 6e5e0278c2
commit 773883c486
2 changed files with 8 additions and 0 deletions

View File

@ -331,6 +331,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key) {
return true;
}
} while (next());
up();
}
return false;
}
@ -346,6 +347,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key_insensitive(
return true;
}
} while (next());
up();
}
return false;
}
@ -362,6 +364,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key,
return true;
}
} while (next());
up();
}
return false;
}
@ -378,6 +381,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_index(uint32_t index) {
if (i == index) {
return true;
}
up();
}
return false;
}

View File

@ -1246,6 +1246,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key) {
return true;
}
} while (next());
up();
}
return false;
}
@ -1261,6 +1262,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key_insensitive(
return true;
}
} while (next());
up();
}
return false;
}
@ -1277,6 +1279,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key,
return true;
}
} while (next());
up();
}
return false;
}
@ -1293,6 +1296,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_index(uint32_t index) {
if (i == index) {
return true;
}
up();
}
return false;
}