Skip to content

Commit

Permalink
use tinyxml's Attribute() instead of QueryBoolAttribute() to stay com…
Browse files Browse the repository at this point in the history
…patible with tinyxml 2.5.x
  • Loading branch information
Montellese committed Apr 9, 2013
1 parent 17411f2 commit 3fd718f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/playlists/SmartPlayList.cpp
Expand Up @@ -1446,8 +1446,8 @@ bool CSmartPlaylist::LoadFromXML(const TiXmlNode *root, const CStdString &encodi
if (groupElement != NULL && groupElement->FirstChild() != NULL)
{
m_group = groupElement->FirstChild()->ValueStr();
if (groupElement->QueryBoolAttribute("mixed", &m_groupMixed) != TIXML_SUCCESS)
m_groupMixed = false;
const char* mixed = groupElement->Attribute("mixed");
m_groupMixed = mixed != NULL && StringUtils::EqualsNoCase(mixed, "true");
}

// now any limits
Expand Down

0 comments on commit 3fd718f

Please sign in to comment.