Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2460a8aa authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty here too

parent d47b207b
......@@ -64,7 +64,7 @@ void PosWidget::paintEvent(QPaintEvent *)
for (int i = 0; i < tracePoints.count()-2; i++)
paint.drawLine(tracePoints[i], tracePoints[i+1]);
if ( tracePoints.count() > 0 )
if ( !tracePoints.isEmpty() )
paint.drawLine(tracePoints[tracePoints.count()-1], QPoint(x, y));
}
......
......@@ -114,7 +114,7 @@ void KCMSplashScreen::getNewClicked()
KNS3::DownloadDialog dialog("ksplash.knsrc", nullptr);
if (dialog.exec()) {
KNS3::Entry::List list = dialog.changedEntries();
if (list.count() > 0) {
if (!list.isEmpty()) {
loadModel();
}
}
......
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