From bc2f6938e34e48d7c22984ff5fde29ea5384ce33 Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 31 Aug 2021 14:47:13 +0200 Subject: [PATCH] Use negation in the multiline boolean of Target.hpp --- src/headers/transpiler/Target.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/transpiler/Target.hpp b/src/headers/transpiler/Target.hpp index 47b0112..7481e7d 100644 --- a/src/headers/transpiler/Target.hpp +++ b/src/headers/transpiler/Target.hpp @@ -25,7 +25,7 @@ protected: occurence_position = view.find(interpolationString, occurence_position + interpolationString.size()); } unsigned long newLine = view.find('\n'); - const bool multiline = newLine != string::npos && (strcmp(openMultiline, "") != 0 && strcmp(closeMultiline, openMultiline) != 0); + const bool multiline = newLine != string::npos && not !strcmp(openMultiline, "") && not !strcmp(closeMultiline, openMultiline); if (not multiline) { while (newLine != string::npos) { view.erase(newLine, 1);