Commit d0cfe1e6 authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty here too

parent f3908180
......@@ -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;
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment