Skip to content

Commit df4aabc

Browse files
Review update
1 parent 8d334cb commit df4aabc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Src/runcpp2/Data/ProfilesDefines.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ std::string runcpp2::Data::ProfilesDefines::ToString(std::string indentation) co
5858
{
5959
std::string result;
6060

61-
for(const auto& profileDefines : Defines)
61+
for(auto it = Defines.begin(); it != Defines.end(); ++it)
6262
{
63-
result += indentation + profileDefines.first + ":\n";
64-
for(const auto& define : profileDefines.second)
63+
result += indentation + it->first + ":\n";
64+
for(int j = 0; j < it->second.size(); ++j)
6565
{
66+
const auto& define = it->second.at(j);
6667
result += indentation + "- ";
6768
if(define.Value.empty())
6869
result += define.Name + "\n";

0 commit comments

Comments
 (0)