Skip to content
Snippets Groups Projects
Unverified Commit b90e39ec authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Prefer empty() over length()

parent 2a2ef2f2
No related branches found
No related tags found
No related merge requests found
Pipeline #2683 passed
......@@ -60,7 +60,7 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
return QStringLiteral(
"<img data-mx-emoticon height=32 src=\"%1\" alt=\"%2\" title=\"%2\">")
.arg(QString::fromStdString(images[index.row()].image.url).toHtmlEscaped(),
images[index.row()].image.body.length() > 0
!images[index.row()].image.body.empty()
? QString::fromStdString(images[index.row()].image.body)
: images[index.row()].shortcode);
case Roles::Url:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment