various optimalizations, runs much faster now, especially with huge playlist
This commit is contained in:
@@ -200,6 +200,11 @@ bool Song::operator==(const Song &s) const
|
||||
return itsFile == s.itsFile && itsArtist == s.itsArtist && itsTitle == s.itsTitle && itsAlbum == s.itsAlbum && itsTrack == s.itsTrack && itsYear == s.itsYear && itsGenre == s.itsGenre && itsComment == s.itsComment && itsHash == s.itsHash && itsMinutesLength && s.itsMinutesLength && itsSecondsLength == s.itsSecondsLength && itsPosition == s.itsPosition && itsID == s.itsID;
|
||||
}
|
||||
|
||||
bool Song::operator!=(const Song &s) const
|
||||
{
|
||||
return itsFile != s.itsFile || itsArtist != s.itsArtist || itsTitle != s.itsTitle || itsAlbum != s.itsAlbum || itsTrack != s.itsTrack || itsYear != s.itsYear || itsGenre != s.itsGenre || itsComment != s.itsComment || itsHash != s.itsHash || itsMinutesLength || s.itsMinutesLength || itsSecondsLength != s.itsSecondsLength || itsPosition != s.itsPosition || itsID != s.itsID;
|
||||
}
|
||||
|
||||
bool Song::operator<(const Song &s) const
|
||||
{
|
||||
return itsPosition < s.itsPosition;
|
||||
|
||||
Reference in New Issue
Block a user