use empty to check string

This commit is contained in:
Jacek Jendrzej
2015-01-09 17:15:11 +01:00
parent aea7e1f772
commit 2b5e7b5ba3
34 changed files with 170 additions and 170 deletions

View File

@@ -394,7 +394,7 @@ void CListFrame::refreshScroll(void)
int CListFrame::paintListIcon(int x, int y, int line)
{
int xDiff = 0;
if ((!m_pLines->Icon.empty()) && (m_pLines->Icon[line] != "")) {
if ((!m_pLines->Icon.empty()) && (!m_pLines->Icon[line].empty())) {
int icol_w, icol_h;
frameBuffer->getIconSize(m_pLines->Icon[line].c_str(), &icol_w, &icol_h);
if ((icol_w > 0) && (icol_h > 0)) {