/*
* Copyright (C) 2012-2013 Team XBMC
- * http://www.xbmc.org
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
CSingleLock lock(m_critSection);
return (m_iEpgID > 0 && /* valid EPG ID */
- m_tags.size() > 0 && /* contains at least 1 tag */
+ !m_tags.empty() && /* contains at least 1 tag */
m_tags.rbegin()->second->EndAsUTC() >= CDateTime::GetCurrentDateTime().GetAsUTCDateTime()); /* the last end time hasn't passed yet */
}
CDateTime first;
CSingleLock lock(m_critSection);
- if (m_tags.size() > 0)
+ if (!m_tags.empty())
first = m_tags.begin()->second->StartAsUTC();
return first;
CDateTime last;
CSingleLock lock(m_critSection);
- if (m_tags.size() > 0)
+ if (!m_tags.empty())
last = m_tags.rbegin()->second->StartAsUTC();
return last;