Use isEmpty here too

This commit is contained in:
Laurent Montel 2018-11-30 07:13:53 +01:00
parent f390818050
commit d0cfe1e658
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ void PixmapViewer::paintEvent(QPaintEvent* event)
void PixmapViewer::checkPendingPixmaps()
{
if (m_pendingPixmaps.count() > 0) {
if (!m_pendingPixmaps.isEmpty()) {
QPixmap pixmap = m_pendingPixmaps.dequeue();
m_oldPixmap = m_pixmap.isNull() ? pixmap : m_pixmap;
m_pixmap = pixmap;

View file

@ -248,7 +248,7 @@ int VersionControlObserver::createItemStatesList(QMap<QString, QVector<ItemState
}
}
if (items.count() > 0) {
if (!items.isEmpty()) {
const QUrl& url = items.first().first.url();
itemStates.insert(url.adjusted(QUrl::RemoveFilename).path(), items);
}