From 9d7300ce89d5f6c37c04a1bbe490cacd5f4b82a9 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 4 Mar 2022 19:18:46 +0100 Subject: [PATCH] Fix errors by removing the isNotBlank boolean and using hasNext instead Signed-off-by: Username404 --- src/headers/parsing/Parser.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 7edd31e..dc4e35c 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -42,8 +42,7 @@ namespace Parser { if (next.toktype == IDENTIFIER) { parseTree << Class(next.toktext); ++i; } else { - const bool isNotBlank = not next.toktext.empty(); - parsingError(next, isNotBlank ? " is not a valid class identifier" : "A class identifier is required", isNotBlank); + parsingError(next, hasNext ? " is not a valid class identifier" : "A class identifier is required", hasNext); } } else { bool isFinalDefine = nextAre({TAG, DEFINE});