From ac91c9fe11b15005464e8651f818be8fbdb511ba Mon Sep 17 00:00:00 2001 From: Marco Mattiolo Date: Sat, 17 Aug 2024 15:48:22 +0200 Subject: [PATCH] Drop semicolon after Q_UNUSED() for consistency through the repo --- components/mobileshell/components/swipearea.cpp | 8 ++++---- .../mobileshell/notifications/notificationthumbnailer.cpp | 2 +- components/quicksettingsplugin/quicksettingsmodel.cpp | 2 +- .../quicksettingsplugin/savedquicksettingsmodel.cpp | 2 +- initialstart/modules/time/timezonemodel.cpp | 2 +- kcms/powermanagement/batterymodel.cpp | 2 +- quicksettings/nightcolor/nightcolorutil.cpp | 6 +++--- tests/notificationtest/tests.cpp | 6 +++--- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/mobileshell/components/swipearea.cpp b/components/mobileshell/components/swipearea.cpp index 0c984baa..5ec21b7c 100644 --- a/components/mobileshell/components/swipearea.cpp +++ b/components/mobileshell/components/swipearea.cpp @@ -288,7 +288,7 @@ void SwipeArea::resetSwipe() void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point) { - Q_UNUSED(event); + Q_UNUSED(event) // ignore more touch events if (m_pressed) { @@ -303,8 +303,8 @@ void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point) void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point) { - Q_UNUSED(event); - Q_UNUSED(point); + Q_UNUSED(event) + Q_UNUSED(point) // if we are in a swipe if (m_moving) { @@ -316,7 +316,7 @@ void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point) void SwipeArea::handleMoveEvent(QPointerEvent *event, QPointF point) { - Q_UNUSED(event); + Q_UNUSED(event) if (!m_stealMouse) { if (!m_skipSwipeThreshold) { diff --git a/components/mobileshell/notifications/notificationthumbnailer.cpp b/components/mobileshell/notifications/notificationthumbnailer.cpp index 8d157a92..f65d6d8a 100644 --- a/components/mobileshell/notifications/notificationthumbnailer.cpp +++ b/components/mobileshell/notifications/notificationthumbnailer.cpp @@ -124,7 +124,7 @@ void NotificationThumbnailer::generatePreview() job->setIgnoreMaximumSize(true); connect(job, &KIO::PreviewJob::gotPreview, this, [this](const KFileItem &item, const QPixmap &preview) { - Q_UNUSED(item); + Q_UNUSED(item) m_pixmap = preview; Q_EMIT pixmapChanged(); diff --git a/components/quicksettingsplugin/quicksettingsmodel.cpp b/components/quicksettingsplugin/quicksettingsmodel.cpp index 2f5576ce..197a19ac 100644 --- a/components/quicksettingsplugin/quicksettingsmodel.cpp +++ b/components/quicksettingsplugin/quicksettingsmodel.cpp @@ -68,7 +68,7 @@ QHash QuickSettingsModel::roleNames() const int QuickSettingsModel::rowCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_quickSettings.size(); } diff --git a/components/quicksettingsplugin/savedquicksettingsmodel.cpp b/components/quicksettingsplugin/savedquicksettingsmodel.cpp index 163a45dd..13ee5877 100644 --- a/components/quicksettingsplugin/savedquicksettingsmodel.cpp +++ b/components/quicksettingsplugin/savedquicksettingsmodel.cpp @@ -26,7 +26,7 @@ QVariant SavedQuickSettingsModel::data(const QModelIndex &index, int role) const int SavedQuickSettingsModel::rowCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_data.count(); } diff --git a/initialstart/modules/time/timezonemodel.cpp b/initialstart/modules/time/timezonemodel.cpp index 045f75d2..417fe072 100644 --- a/initialstart/modules/time/timezonemodel.cpp +++ b/initialstart/modules/time/timezonemodel.cpp @@ -46,7 +46,7 @@ TimeZoneModel::~TimeZoneModel() int TimeZoneModel::rowCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_data.count(); } diff --git a/kcms/powermanagement/batterymodel.cpp b/kcms/powermanagement/batterymodel.cpp index 7f48c301..ee2b6388 100644 --- a/kcms/powermanagement/batterymodel.cpp +++ b/kcms/powermanagement/batterymodel.cpp @@ -81,7 +81,7 @@ QVariant BatteryModel::data(const QModelIndex &index, int role) const int BatteryModel::rowCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_batteries.count(); } diff --git a/quicksettings/nightcolor/nightcolorutil.cpp b/quicksettings/nightcolor/nightcolorutil.cpp index 2c72ab10..4fc13851 100644 --- a/quicksettings/nightcolor/nightcolorutil.cpp +++ b/quicksettings/nightcolor/nightcolorutil.cpp @@ -43,9 +43,9 @@ void NightColorUtil::setEnabled(bool enabled) void NightColorUtil::enabledUpdated(const QString &name, const QVariantMap &map, const QStringList &list) { - Q_UNUSED(name); - Q_UNUSED(map); - Q_UNUSED(list); + Q_UNUSED(name) + Q_UNUSED(map) + Q_UNUSED(list) bool running = m_ccInterface->running(); if (running != m_enabled) { m_enabled = running; diff --git a/tests/notificationtest/tests.cpp b/tests/notificationtest/tests.cpp index 3de1ec63..bb71768c 100644 --- a/tests/notificationtest/tests.cpp +++ b/tests/notificationtest/tests.cpp @@ -23,7 +23,7 @@ void BasicNotificationTest::sendNotification(QCoreApplication &app) notification->setIconName(QStringLiteral("notification-active")); notification->setText("This is a test notification!"); auto action = notification->addAction("Action!"); - Q_UNUSED(action); + Q_UNUSED(action) connect(notification, &KNotification::closed, &app, QCoreApplication::quit); notification->sendEvent(); @@ -95,7 +95,7 @@ void CriticalUrgencyNotificationTest::sendNotification(QCoreApplication &app) notification->setText("This is very urgent! AAAAAA"); notification->setUrgency(KNotification::CriticalUrgency); auto action = notification->addAction("Action!"); - Q_UNUSED(action); + Q_UNUSED(action) connect(notification, &KNotification::closed, &app, QCoreApplication::quit); notification->sendEvent(); @@ -144,4 +144,4 @@ void JobNotificationTest::sendNotification(QCoreApplication &app) jobTracker->registerJob(job); job->start(); -} \ No newline at end of file +}