From 4cab89febf2e15bd3f3fcbd92a61964df9b99d20 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 30 Nov 2018 08:59:38 +0100 Subject: [PATCH] Use isEmpty() --- autotests/proxymodeltestsuite/dynamictreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/proxymodeltestsuite/dynamictreemodel.cpp b/autotests/proxymodeltestsuite/dynamictreemodel.cpp index b8dbed3..f08a3a7 100644 --- a/autotests/proxymodeltestsuite/dynamictreemodel.cpp +++ b/autotests/proxymodeltestsuite/dynamictreemodel.cpp @@ -599,7 +599,7 @@ void ModelInsertAndRemoveQueuedCommand::purgeItem(qint64 parent) { QList > childItemRows = m_model->m_childItems.value(parent); - if (childItemRows.size() > 0) { + if (!childItemRows.isEmpty()) { for (int col = 0; col < m_numCols; col++) { QList childItems = childItemRows[col]; Q_FOREACH (qint64 item, childItems) { @@ -681,7 +681,7 @@ void ModelRemoveCommand::purgeItem(qint64 parent) { QList > childItemRows = m_model->m_childItems.value(parent); - if (childItemRows.size() > 0) { + if (!childItemRows.isEmpty()) { for (int col = 0; col < m_numCols; col++) { QList childItems = childItemRows[col]; Q_FOREACH (qint64 item, childItems) {