Commit 72fc2c24 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix warning about extra ";"

parent 7ba33280
......@@ -810,8 +810,8 @@ void AlarmDialog::wakeUp()
void AlarmDialog::slotDBusNotificationsPropertiesChanged(const QString &interface, const QVariantMap &changedProperties, const QStringList &invalidatedProperties)
{
Q_UNUSED(interface); // always "org.freedesktop.Notifications"
Q_UNUSED(invalidatedProperties);
Q_UNUSED(interface) // always "org.freedesktop.Notifications"
Q_UNUSED(invalidatedProperties)
const auto it = changedProperties.find(QStringLiteral("Inhibited"));
if (it != changedProperties.end()) {
const bool inhibited = it.value().toBool();
......
......@@ -168,7 +168,7 @@ void AlarmDockWindow::enableAutostart(bool enable)
void AlarmDockWindow::activate(const QPoint &pos)
{
Q_UNUSED(pos);
Q_UNUSED(pos)
KToolInvocation::startServiceByDesktopName(QStringLiteral("org.kde.korganizer"), QString());
}
......
......@@ -174,7 +174,7 @@ QStringList extractEmailAndNormalize(const QString &email)
bool MailClient::send(const KIdentityManagement::Identity &identity, const QString &from, const QString &_to, const QString &cc, const QString &subject, const QString &body, bool hidden, bool bccMe, const QString &attachment, const QString &mailTransport)
{
Q_UNUSED(hidden);
Q_UNUSED(hidden)
if (!MailTransport::TransportManager::self()->showTransportCreationDialog(
nullptr, MailTransport::TransportManager::IfNoTransportExists)) {
......
......@@ -1414,7 +1414,7 @@ protected:
void ActionManager::processIncidenceSelection(const Akonadi::Item &item, QDate date)
{
//qCDebug(KORGANIZER_LOG) << "ActionManager::processIncidenceSelection()";
Q_UNUSED(date);
Q_UNUSED(date)
const KCalendarCore::Incidence::Ptr incidence = CalendarSupport::incidence(item);
if (!incidence) {
......@@ -1786,22 +1786,22 @@ QWidget *ActionManager::dialogParent()
void ActionManager::openTodoEditor(const QString &summary, const QString &description, const QStringList &attachmentUris, const QStringList &attendees, const QStringList &attachmentMimetypes, bool attachmentIsInline)
{
Q_UNUSED(summary);
Q_UNUSED(description);
Q_UNUSED(attachmentUris);
Q_UNUSED(attendees);
Q_UNUSED(attachmentMimetypes);
Q_UNUSED(attachmentIsInline);
Q_UNUSED(summary)
Q_UNUSED(description)
Q_UNUSED(attachmentUris)
Q_UNUSED(attendees)
Q_UNUSED(attachmentMimetypes)
Q_UNUSED(attachmentIsInline)
qCWarning(KORGANIZER_LOG) << "Not implemented in korg-desktop";
}
void ActionManager::openEventEditor(const QString &summary, const QString &description, const QStringList &attachmentUris, const QStringList &attendees, const QStringList &attachmentMimetypes, bool attachmentIsInline)
{
Q_UNUSED(summary);
Q_UNUSED(description);
Q_UNUSED(attachmentUris);
Q_UNUSED(attendees);
Q_UNUSED(attachmentMimetypes);
Q_UNUSED(attachmentIsInline);
Q_UNUSED(summary)
Q_UNUSED(description)
Q_UNUSED(attachmentUris)
Q_UNUSED(attendees)
Q_UNUSED(attachmentMimetypes)
Q_UNUSED(attachmentIsInline)
qCWarning(KORGANIZER_LOG) << "Not implemented in korg-desktop";
}
......@@ -615,7 +615,7 @@ void CalendarView::updateConfig(const QByteArray &receiver)
void CalendarView::slotCreateFinished(int changeId, const Akonadi::Item &item, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
{
Q_UNUSED(changeId);
Q_UNUSED(changeId)
if (resultCode == Akonadi::IncidenceChanger::ResultCodeSuccess) {
changeIncidenceDisplay(item, Akonadi::IncidenceChanger::ChangeTypeCreate);
updateUnmanagedViews();
......@@ -627,7 +627,7 @@ void CalendarView::slotCreateFinished(int changeId, const Akonadi::Item &item, A
void CalendarView::slotModifyFinished(int changeId, const Akonadi::Item &item, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
{
Q_UNUSED(changeId);
Q_UNUSED(changeId)
if (resultCode != Akonadi::IncidenceChanger::ResultCodeSuccess) {
qCCritical(KORGANIZER_LOG) << "Incidence not modified, job reported error: " << errorString;
return;
......@@ -683,7 +683,7 @@ void CalendarView::slotModifyFinished(int changeId, const Akonadi::Item &item, A
void CalendarView::slotDeleteFinished(int changeId, const QVector<Akonadi::Item::Id> &itemIdList, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
{
Q_UNUSED(changeId);
Q_UNUSED(changeId)
if (resultCode == Akonadi::IncidenceChanger::ResultCodeSuccess) {
for (Akonadi::Item::Id id : itemIdList) {
Akonadi::Item item = mCalendar->item(id);
......@@ -1475,8 +1475,8 @@ void CalendarView::copyIncidenceToResource(const Akonadi::Item &item, const Akon
i18nc("@title:window", "Copying Failed"));
}
#else
Q_UNUSED(col);
Q_UNUSED(item);
Q_UNUSED(col)
Q_UNUSED(item)
qCDebug(KORGANIZER_LOG) << "AKONADI PORT: Disabled code in " << Q_FUNC_INFO;
#endif
}
......@@ -1561,8 +1561,8 @@ void CalendarView::moveIncidenceToResource(const Akonadi::Item &item, const Akon
i18nc("@title:window", "Moving Failed"));
}
#else
Q_UNUSED(col);
Q_UNUSED(item);
Q_UNUSED(col)
Q_UNUSED(item)
qCDebug(KORGANIZER_LOG) << "AKONADI PORT: Disabled code in " << Q_FUNC_INFO;
#endif
}
......@@ -2151,13 +2151,13 @@ void CalendarView::deleteIncidence()
void CalendarView::cutIncidence(const Akonadi::Item &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
edit_cut();
}
void CalendarView::copyIncidence(const Akonadi::Item &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
edit_copy();
}
......@@ -2204,7 +2204,7 @@ void CalendarView::showIncidenceContext(const Akonadi::Item &item)
bool CalendarView::editIncidence(const Akonadi::Item &item, bool isCounter)
{
Q_UNUSED(isCounter);
Q_UNUSED(isCounter)
KCalendarCore::Incidence::Ptr incidence = CalendarSupport::incidence(item);
if (!incidence) {
qCCritical(KORGANIZER_LOG) << "Null incidence";
......
......@@ -104,7 +104,7 @@ SearchDialog::~SearchDialog()
void SearchDialog::showEvent(QShowEvent *event)
{
Q_UNUSED(event);
Q_UNUSED(event)
m_ui->searchEdit->setFocus();
}
......
......@@ -179,9 +179,9 @@ void BaseView::clearSelection()
bool BaseView::eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay)
{
Q_UNUSED(startDt);
Q_UNUSED(endDt);
Q_UNUSED(allDay);
Q_UNUSED(startDt)
Q_UNUSED(endDt)
Q_UNUSED(allDay)
return false;
}
......@@ -213,7 +213,7 @@ void BaseView::calendarReset()
QPair<QDateTime, QDateTime> BaseView::actualDateRange(const QDateTime &start, const QDateTime &end, const QDate &preferredMonth) const
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
return qMakePair(start, end);
}
......
......@@ -19,7 +19,7 @@ MainWindow::~MainWindow()
void MainWindow::init(bool hasDocument)
{
Q_UNUSED(hasDocument);
Q_UNUSED(hasDocument)
}
void MainWindow::setHasDocument(bool d)
......
......@@ -41,7 +41,7 @@ KOrganizerApp::~KOrganizerApp()
int KOrganizerApp::activate(const QStringList &args, const QString &workingDir)
{
Q_UNUSED(workingDir);
Q_UNUSED(workingDir)
static bool first = true;
if (isSessionRestored() && first) {
KOrg::MainWindow *korg = ActionManager::findInstance(QUrl());
......
......@@ -419,20 +419,20 @@ int KODayMatrix::getDayIndexFrom(int x, int y) const
void KODayMatrix::calendarIncidenceAdded(const KCalendarCore::Incidence::Ptr &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
mPendingChanges = true;
}
void KODayMatrix::calendarIncidenceChanged(const KCalendarCore::Incidence::Ptr &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
mPendingChanges = true;
}
void KODayMatrix::calendarIncidenceDeleted(const KCalendarCore::Incidence::Ptr &incidence, const KCalendarCore::Calendar *calendar)
{
Q_UNUSED(incidence);
Q_UNUSED(calendar);
Q_UNUSED(incidence)
Q_UNUSED(calendar)
mPendingChanges = true;
}
......@@ -616,7 +616,7 @@ void KODayMatrix::dragMoveEvent(QDragMoveEvent *e)
void KODayMatrix::dragLeaveEvent(QDragLeaveEvent *dl)
{
Q_UNUSED(dl);
Q_UNUSED(dl)
// setPalette(oldPalette);
// update();
}
......
......@@ -41,7 +41,7 @@ public:
void configUpdated();
void updateSummary(bool force = false) override
{
Q_UNUSED(force);
Q_UNUSED(force)
updateView();
}
......
......@@ -24,7 +24,7 @@ void KOrganizerUniqueAppHandler::loadCommandLineOptions(QCommandLineParser *pars
int KOrganizerUniqueAppHandler::activate(const QStringList &args, const QString &workingDir)
{
Q_UNUSED(workingDir);
Q_UNUSED(workingDir)
// Ensure part is loaded
(void)plugin()->part();
......
......@@ -44,7 +44,7 @@ public:
public Q_SLOTS:
void updateSummary(bool force = false) override
{
Q_UNUSED(force);
Q_UNUSED(force)
updateView();
}
......
......@@ -41,7 +41,7 @@ public:
void configUpdated();
void updateSummary(bool force = false) override
{
Q_UNUSED(force);
Q_UNUSED(force)
updateView();
}
......
......@@ -84,7 +84,7 @@ KOrganizerPart::~KOrganizerPart()
void KOrganizerPart::slotChangeInfo(const Akonadi::Item &item, const QDate &date)
{
Q_UNUSED(date);
Q_UNUSED(date)
const KCalendarCore::Incidence::Ptr incidence = CalendarSupport::incidence(item);
if (incidence) {
Q_EMIT textChanged(incidence->summary() + QLatin1String(" / ")
......
......@@ -55,8 +55,8 @@ private:
bool setData(const QVariant &variant, int role) override
{
Q_UNUSED(variant);
Q_UNUSED(role);
Q_UNUSED(variant)
Q_UNUSED(role)
return false;
}
......
......@@ -364,9 +364,9 @@ void ReparentingModel::setSourceModel(QAbstractItemModel *sourceModel)
void ReparentingModel::onSourceRowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
{
Q_UNUSED(parent);
Q_UNUSED(start);
Q_UNUSED(end);
Q_UNUSED(parent)
Q_UNUSED(start)
Q_UNUSED(end)
}
ReparentingModel::Node *ReparentingModel::getReparentNode(const QModelIndex &sourceIndex)
......
......@@ -208,7 +208,7 @@ void MonthView::setIncidenceChanger(Akonadi::IncidenceChanger *changer)
void MonthView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
{
Q_UNUSED(start);
Q_UNUSED(end);
Q_UNUSED(preferredMonth);
Q_UNUSED(start)
Q_UNUSED(end)
Q_UNUSED(preferredMonth)
}
......@@ -431,7 +431,7 @@ void MultiAgendaViewConfigDialog::Private::setUpColumns(int n)
AkonadiCollectionView *cview = createView(selection);
const int idx = ui.selectionStack->addWidget(cview);
Q_ASSERT(i == idx);
Q_UNUSED(idx);
Q_UNUSED(idx)
selections[i] = selection;
newlyCreated.push_back(selection);
}
......
......@@ -142,14 +142,14 @@ void KOTodoView::setIncidenceChanger(Akonadi::IncidenceChanger *changer)
void KOTodoView::showDates(const QDate &start, const QDate &end, const QDate &)
{
// There is nothing to do here for the Todo View
Q_UNUSED(start);
Q_UNUSED(end);
Q_UNUSED(start)
Q_UNUSED(end)
}
void KOTodoView::showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
{
Q_UNUSED(incidenceList);
Q_UNUSED(date);
Q_UNUSED(incidenceList)
Q_UNUSED(date)
}
void KOTodoView::updateView()
......
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