use empty() instead of size()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7d8d995046
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-06-18 (Mon, 18 Jun 2012)

Origin message was:
------------------
 use empty() instead of size()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-06-18 16:57:44 +02:00
parent 8f4a18acf5
commit edfa13c4ad
8 changed files with 16 additions and 16 deletions

View File

@@ -2086,8 +2086,8 @@ void CMovieBrowser::onDeleteFile(MI_MOVIE_INFO& movieSelectionHandler)
m_vMovieInfo.erase( (std::vector<MI_MOVIE_INFO>::iterator)&movieSelectionHandler);
TRACE("List size: %d\n", m_vMovieInfo.size());
//if(m_vMovieInfo.size() == 0) fileInfoStale();
//if(m_vMovieInfo.size() == 0) onSetGUIWindow(m_settings.gui);
//if(m_vMovieInfo.empty()) fileInfoStale();
//if(m_vMovieInfo.empty()) onSetGUIWindow(m_settings.gui);
updateSerienames();
refreshBrowserList();
refreshLastPlayList();
@@ -2399,7 +2399,7 @@ void CMovieBrowser::loadAllTsFileNamesFromStorage(void)
TRACE("[mb] Dir%d, Files:%d \r\n",m_dirNames.size(),m_vMovieInfo.size());
/*
if(m_vMovieInfo.size() == 0)
if(m_vMovieInfo.empty())
{
std::string msg = g_Locale->getText(LOCALE_MOVIEBROWSER_ERROR_NO_MOVIES);
DisplayErrorMessage(msg.c_str());