Skip to content

Commit

Permalink
Make PartyModeManager.cpp and AddonDatabase.cpp compatible with STL f…
Browse files Browse the repository at this point in the history
…rom VS2012
  • Loading branch information
Karlson2k committed Aug 23, 2012
1 parent e447838 commit bfc080e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/PartyModeManager.cpp
Expand Up @@ -665,7 +665,7 @@ void CPartyModeManager::AddToHistory(int type, int songID)
{
while (m_history.size() >= m_songsInHistory && m_songsInHistory)
m_history.erase(m_history.begin());
m_history.push_back(make_pair<int,int>(type,songID));
m_history.push_back(make_pair(type,songID));
}

void CPartyModeManager::GetRandomSelection(vector< pair<int,int> >& in, unsigned int number, vector< pair<int,int> >& out)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/AddonDatabase.cpp
Expand Up @@ -268,7 +268,7 @@ bool CAddonDatabase::GetAddon(int id, AddonPtr& addon)
m_pDS2->query(sql.c_str());
while (!m_pDS2->eof())
{
props.dependencies.insert(make_pair(m_pDS2->fv(0).get_asString(), make_pair(m_pDS2->fv(1).get_asString(), m_pDS2->fv(2).get_asBool())));
props.dependencies.insert(make_pair(m_pDS2->fv(0).get_asString(), make_pair(AddonVersion(m_pDS2->fv(1).get_asString()), m_pDS2->fv(2).get_asBool())));
m_pDS2->next();
}

Expand Down

0 comments on commit bfc080e

Please sign in to comment.