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/ZRoom/Commands/SetActorList.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/ZRoom/Commands/SetActorList.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetActorList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZRoom/Commands/SetActorList.cpp b/ZAPD/ZRoom/Commands/SetActorList.cpp index 38ac0ed..3239cdc 100644 --- a/ZAPD/ZRoom/Commands/SetActorList.cpp +++ b/ZAPD/ZRoom/Commands/SetActorList.cpp @@ -48,7 +48,7 @@ void SetActorList::DeclareReferencesLate(const std::string& prefix) if (actors.empty()) return; - std::string declaration = ""; + std::string declaration; size_t largestlength = 0; for (const auto& entry : actors) @@ -136,7 +136,7 @@ ActorSpawnEntry::ActorSpawnEntry(const std::vector<uint8_t>& rawData, uint32_t r std::string ActorSpawnEntry::GetBodySourceCode() const { - std::string body = ""; + std::string body; std::string actorNameFmt = StringHelper::Sprintf("%%-%zus ", largestActorName + 1); body = |
