Drop semicolon after Q_UNUSED() for consistency through the repo

This commit is contained in:
Marco Mattiolo 2024-08-17 15:48:22 +02:00 committed by Devin Lin
parent bfdc6d938a
commit ac91c9fe11
8 changed files with 15 additions and 15 deletions

View file

@ -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) {

View file

@ -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();

View file

@ -68,7 +68,7 @@ QHash<int, QByteArray> QuickSettingsModel::roleNames() const
int QuickSettingsModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
Q_UNUSED(parent)
return m_quickSettings.size();
}

View file

@ -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();
}

View file

@ -46,7 +46,7 @@ TimeZoneModel::~TimeZoneModel()
int TimeZoneModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
Q_UNUSED(parent)
return m_data.count();
}

View file

@ -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();
}

View file

@ -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;

View file

@ -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();
}
}