From ca3b030fedc6d9c9be90630bedf1e8433519a6ec Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 22 Mar 2022 15:59:30 +0100 Subject: [PATCH] Delete the default constructor in Target.hpp and always initialize output Signed-off-by: Username404 --- src/headers/transpiler/Target.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/headers/transpiler/Target.hpp b/src/headers/transpiler/Target.hpp index dd6e32b..795aac7 100644 --- a/src/headers/transpiler/Target.hpp +++ b/src/headers/transpiler/Target.hpp @@ -144,7 +144,8 @@ public: separate_transpileTree(tree); return output.str() + '\n'; }; - explicit Target(const bool& newLines): newLines(newLines), separator() {}; + explicit Target(const bool& newLines): output(), newLines(newLines), separator() {}; + Target() = delete; virtual ~Target() = default; };