mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Use isEmpty here too
This commit is contained in:
parent
f390818050
commit
d0cfe1e658
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue