Fix missed comments on initial commit

Change local variable from PrevKeyNode to pPreviousKeyNode.
Change variable name from tnullcheck to nextToken.
This commit is contained in:
Ted Lyngmo 2019-03-13 14:28:24 +01:00
parent 0b2309d17b
commit ed0087b76e
2 changed files with 6 additions and 6 deletions

View File

@ -58,8 +58,8 @@ class GraphBuilderAdapter : public EventHandler {
struct ContainerFrame {
ContainerFrame(void* pSequence)
: pContainer(pSequence), pPrevKeyNode(&sequenceMarker) {}
ContainerFrame(void* pMap, void* PrevKeyNode)
: pContainer(pMap), pPrevKeyNode(PrevKeyNode) {}
ContainerFrame(void* pMap, void* pPreviousKeyNode)
: pContainer(pMap), pPrevKeyNode(pPreviousKeyNode) {}
void* pContainer;
void* pPrevKeyNode;

View File

@ -167,10 +167,10 @@ void SingleDocParser::HandleBlockSequence(EventHandler& eventHandler) {
// check for null
if (!m_scanner.empty()) {
const Token& tnullcheck = m_scanner.peek();
if (tnullcheck.type == Token::BLOCK_ENTRY ||
tnullcheck.type == Token::BLOCK_SEQ_END) {
eventHandler.OnNull(tnullcheck.mark, NullAnchor);
const Token& nextToken = m_scanner.peek();
if (nextToken.type == Token::BLOCK_ENTRY ||
nextToken.type == Token::BLOCK_SEQ_END) {
eventHandler.OnNull(nextToken.mark, NullAnchor);
continue;
}
}