diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-10-11 14:05:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 14:05:18 -0400 |
| commit | 1c687a69c1f6b84a3fea1bcab8e141f8a26e16dc (patch) | |
| tree | aef5f75cefb24ad9d77a7c69776b6df6eba004b5 /ZAPD/ZArray.cpp | |
| parent | 4994e732406ffa2942f9c9ea6ff14c424cd0b896 (diff) | |
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)
Diffstat (limited to 'ZAPD/ZArray.cpp')
| -rw-r--r-- | ZAPD/ZArray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |
