From 1c687a69c1f6b84a3fea1bcab8e141f8a26e16dc Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Mon, 11 Oct 2021 14:05:18 -0400 Subject: string -> const string& and more (#199) * all possible strings use const & and make some strings const char* * remove ='' from new strings * formatter * revert globals * Fix warning (error) --- ZAPD/ZArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ZAPD/ZArray.cpp') diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp index 9c562f0..d7d546a 100644 --- a/ZAPD/ZArray.cpp +++ b/ZAPD/ZArray.cpp @@ -87,7 +87,7 @@ Declaration* ZArray::DeclareVar(const std::string& prefix, const std::string& bo std::string ZArray::GetBodySourceCode() const { - std::string output = ""; + std::string output; for (size_t i = 0; i < arrayCnt; i++) { -- cgit v1.2.3