mirror of https://github.com/x64dbg/btparser
				
				
				
			fixed Coverity errors
This commit is contained in:
		
							parent
							
								
									46b59b43ce
								
							
						
					
					
						commit
						90eed9913a
					
				| 
						 | 
					@ -96,8 +96,6 @@ bool Lexer::Test(const std::function<void(const std::string & line)> & lexEnum,
 | 
				
			||||||
        lexEnum(toks);
 | 
					        lexEnum(toks);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    while(tok != tok_eof && tok != tok_error);
 | 
					    while(tok != tok_eof && tok != tok_error);
 | 
				
			||||||
    if(tok != tok_error && tok != tok_eof)
 | 
					 | 
				
			||||||
        tok = reportError("lexer did not finish at the end of the file");
 | 
					 | 
				
			||||||
    for(const auto & warning : mWarnings)
 | 
					    for(const auto & warning : mWarnings)
 | 
				
			||||||
        if(output)
 | 
					        if(output)
 | 
				
			||||||
            lexEnum("\nwarning: " + warning);
 | 
					            lexEnum("\nwarning: " + warning);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,7 +37,7 @@ public:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    struct TokenState
 | 
					    struct TokenState
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Token Token;
 | 
					        Token Token = tok_eof;
 | 
				
			||||||
        std::string IdentifierStr; //tok_identifier
 | 
					        std::string IdentifierStr; //tok_identifier
 | 
				
			||||||
        uint64_t NumberVal = 0; //tok_number
 | 
					        uint64_t NumberVal = 0; //tok_number
 | 
				
			||||||
        std::string StringLit; //tok_stringlit
 | 
					        std::string StringLit; //tok_stringlit
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue