summaryrefslogtreecommitdiff
path: root/ZAPD/ZRoom/Commands/SetExitList.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-10-11 14:05:18 -0400
committerGitHub <noreply@github.com>2021-10-11 14:05:18 -0400
commit1c687a69c1f6b84a3fea1bcab8e141f8a26e16dc (patch)
treeaef5f75cefb24ad9d77a7c69776b6df6eba004b5 /ZAPD/ZRoom/Commands/SetExitList.cpp
parent4994e732406ffa2942f9c9ea6ff14c424cd0b896 (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/SetExitList.cpp')
-rw-r--r--ZAPD/ZRoom/Commands/SetExitList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/Commands/SetExitList.cpp b/ZAPD/ZRoom/Commands/SetExitList.cpp
index a3cd642..f491eb4 100644
--- a/ZAPD/ZRoom/Commands/SetExitList.cpp
+++ b/ZAPD/ZRoom/Commands/SetExitList.cpp
@@ -34,7 +34,7 @@ void SetExitList::DeclareReferencesLate([[maybe_unused]] const std::string& pref
{
if (!exits.empty())
{
- std::string declaration = "";
+ std::string declaration;
for (size_t i = 0; i < exits.size(); i++)
{