mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
use empty to check string
Origin commit data
------------------
Commit: 2b5e7b5ba3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-09 (Fri, 09 Jan 2015)
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -2264,7 +2264,7 @@ int CLockedMenuForwarder::exec(CMenuTarget* parent)
|
||||
|
||||
int CMenuSelectorTarget::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
|
||||
{
|
||||
if (actionKey != "")
|
||||
if (!actionKey.empty())
|
||||
*m_select = atoi(actionKey);
|
||||
else
|
||||
*m_select = -1;
|
||||
|
@@ -116,7 +116,7 @@ void CMessageBox::Init(const CMessageBox::result_ &Default, const uint32_t ShowB
|
||||
ButtonDistance = (m_width - b_width * ButtonCount) / (ButtonCount + 1);
|
||||
|
||||
/* this is ugly: re-init (CHintBoxExt) to recalculate the number of lines and pages */
|
||||
init(m_caption, m_captionString, m_width, m_iconfile == "" ? NULL : m_iconfile.c_str());
|
||||
init(m_caption, m_captionString, m_width, m_iconfile.empty() ? NULL : m_iconfile.c_str());
|
||||
m_height += m_bbheight;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user