X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc%2Fepg%2FEpg.cpp;h=a538a5d869d60903d42652f5d52d64d0c78c78db;hb=4bf98c42c189a5fcf53cba48ee00af9e7d1f2019;hp=c01321c464e21c0348503994445f980a3f187a03;hpb=d1fd62bf2f627e74e6d226dc2fbfe4d036ec8214;p=vuplus_xbmc diff --git a/xbmc/epg/Epg.cpp b/xbmc/epg/Epg.cpp index c01321c..a538a5d 100644 --- a/xbmc/epg/Epg.cpp +++ b/xbmc/epg/Epg.cpp @@ -1,6 +1,6 @@ /* * 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 @@ -150,7 +150,7 @@ bool CEpg::HasValidEntries(void) const 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 */ } @@ -580,7 +580,7 @@ CDateTime CEpg::GetFirstDate(void) const CDateTime first; CSingleLock lock(m_critSection); - if (m_tags.size() > 0) + if (!m_tags.empty()) first = m_tags.begin()->second->StartAsUTC(); return first; @@ -591,7 +591,7 @@ CDateTime CEpg::GetLastDate(void) const CDateTime last; CSingleLock lock(m_critSection); - if (m_tags.size() > 0) + if (!m_tags.empty()) last = m_tags.rbegin()->second->StartAsUTC(); return last;