Forgot to utilize references.
Still compiled, but wasn't the best move.
This commit is contained in:
+1
-1
@@ -907,7 +907,7 @@ void SongUtil::GetAllSongGenres( vector<RString> &vsOut )
|
||||
if( !(*song)->m_sGenre.empty() )
|
||||
genres.insert( (*song)->m_sGenre );
|
||||
}
|
||||
for (RString const genre : genres)
|
||||
for (RString const &genre : genres)
|
||||
{
|
||||
vsOut.push_back( genre );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user