Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 22dcf5866f
commit 53ba98d636
134 changed files with 419 additions and 419 deletions

View File

@@ -224,7 +224,7 @@ QVariant SheetModel::data(const QModelIndex &index, int role) const
if(cell->getExpression()) {
std::string str;
if (cell->getStringContent(str))
if (str.size() > 0 && str[0] == '=')
if (!str.empty() && str[0] == '=')
// If this is a real computed value, indicate that a recompute is
// needed before we can display it
return QVariant(QLatin1String("#PENDING"));