Project

General

Profile

Bug #267 ยป SmartPlaylist.cpp.patch

fix: incorrect argument order in SmartPlaylist.GetWhereClause() call - fix compiler warning: xbmc\SmartPlaylist.cpp(575) : warning C4800: 'CDatabase *' : forcing value to bool 'true' or 'false' (performance warning) - dandar3, 21/11/2013 12:38 AM

View differences:

xbmc/SmartPlaylist.cpp (working copy)
if (playlist.GetType().Equals(strType) || (playlist.GetType().Equals("mixed") && (strType == "songs" || strType == "musicvideos")) || playlist.GetType().IsEmpty())
{
playlist.SetType(strType);
playlistQuery = playlist.GetWhereClause(false, db);
playlistQuery = playlist.GetWhereClause(db, false);
}
if (m_operator == OPERATOR_DOES_NOT_EQUAL && playlist.GetType().Equals(strType))
query.Format("NOT (%s)", playlistQuery.c_str());
    (1-1/1)