Skip to content

Commit

Permalink
Remove obsolete copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Nov 18, 2023
1 parent 682e87e commit 975a6f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,8 @@ std::unordered_map<std::string, std::string> ArgMapToStringMap(const std::unorde
{
std::unordered_map<std::string, std::string> stringMap;

for (auto& [k, value] : argMap)
for (auto& [key, value] : argMap)
{
CLuaArgument key = k; // make a copy due to GetAsString not working with const

SString keystr, valuestr;
if (!key.GetAsString(keystr) || !value.GetAsString(valuestr))
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,8 @@ std::unordered_map<std::string, std::string> ArgMapToStringMap(const std::unorde
{
std::unordered_map<std::string, std::string> stringMap;

for (auto& [k, value] : argMap)
for (auto& [key, value] : argMap)
{
CLuaArgument key = k; // make a copy due to GetAsString not working with const

SString keystr, valuestr;
if (!key.GetAsString(keystr) || !value.GetAsString(valuestr))
continue;
Expand Down

0 comments on commit 975a6f1

Please sign in to comment.