From de24219fca4bdd323c851806d5df579a9c3b8e1e Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 6 Jul 2021 20:56:44 +0200 Subject: [PATCH] Define the two reference variables in one line in the loop of Parser.hpp. --- 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 b61f657..e65b13b 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -8,8 +8,7 @@ namespace Parser { ParseTree parseTree; using namespace StandardComponents::types; for (unsigned int i = 0; i < lexed.size() - 1; ++i) { - const auto& current = lexed[i]; - const auto& next = lexed[i + 1]; + const auto& current = lexed[i], next = lexed[i + 1]; }