Address PR feedback.

This commit is contained in:
Brian Phlipot
2022-12-23 12:34:02 -07:00
committed by teejusb
parent 4a6b1a743c
commit d079940fea
44 changed files with 259 additions and 236 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ void Profile::ClearSongs()
int Profile::HighScoresForASong::GetNumTimesPlayed() const
{
int iCount = 0;
for (const auto& i : m_StepsHighScores)
for (const std::pair<const StepsID, HighScoresForASteps>& i : m_StepsHighScores)
{
iCount += i.second.hsl.GetNumTimesPlayed();
}
@@ -106,7 +106,7 @@ int Profile::HighScoresForASong::GetNumTimesPlayed() const
int Profile::HighScoresForACourse::GetNumTimesPlayed() const
{
int iCount = 0;
for (const auto& i : m_TrailHighScores)
for (const std::pair<const TrailID, HighScoresForATrail>& i : m_TrailHighScores)
{
iCount += i.second.hsl.GetNumTimesPlayed();
}
@@ -1605,7 +1605,7 @@ XNode* Profile::SaveGeneralDataCreateNode() const
{
XNode* pNumSongsPlayedByStyle = pGeneralDataNode->AppendChild("NumSongsPlayedByStyle");
for (const auto& iter : m_iNumSongsPlayedByStyle)
for (const std::pair<StyleID const, int>& iter : m_iNumSongsPlayedByStyle)
{
const StyleID &s = iter.first;
int iNumPlays = iter.second;