[WIN32] fixed: use .empty() instead of .size() < 1 (grr)
authorwsoltys <wiso@no.way>
Tue, 9 Jul 2013 15:15:50 +0000 (17:15 +0200)
committerwsoltys <wiso@no.way>
Tue, 9 Jul 2013 15:15:50 +0000 (17:15 +0200)
xbmc/windowing/windows/WinSystemWin32.cpp

index 3e801c2..65a994f 100644 (file)
@@ -60,7 +60,7 @@ bool CWinSystemWin32::InitWindowSystem()
   if(!CWinSystemBase::InitWindowSystem())
     return false;
 
-  if(m_MonitorsInfo.size() < 1)
+  if(m_MonitorsInfo.empty())
   {
     CLog::Log(LOGERROR, "%s - no suitable monitor found, aborting...", __FUNCTION__);
     return false;
@@ -467,7 +467,7 @@ void CWinSystemWin32::UpdateResolutions()
 
   UpdateResolutionsInternal();
 
-  if(m_MonitorsInfo.size() < 1)
+  if(m_MonitorsInfo.empty())
     return;
 
   float refreshRate = 0;