Skip to content

Commit

Permalink
replace some push_back calls with emplace_back in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 21, 2017
1 parent 4889947 commit a1f7923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
const XNode* pFavorites = pNode->GetChild("Favorites");
if (pFavorites) {
FOREACH_CONST_Child(pFavorites, ck)
FavoritedCharts.push_back(ck->GetName());
FavoritedCharts.emplace_back(ck->GetName());
SONGMAN->SetFavoritedStatus(FavoritedCharts);
}
}
Expand Down Expand Up @@ -2319,7 +2319,7 @@ bool Profile::CalcTopSSRs(unsigned int qty, int skillset) {
return true;

for (unsigned int i = 0; i < qty; i++) {
topSSRs.push_back(0);
topSSRs.emplace_back(0);
(*topSSRStepIdsPtr).emplace_back(emptySteps);
(*topSSRSongIdsPtr).emplace_back(emptySong);
//(*topSSRHighScoresPtr).emplace_back(emptyHighScorePtr);
Expand Down

0 comments on commit a1f7923

Please sign in to comment.