Commit d2865b35 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: fix pedantic

parent 0430ebec
Pipeline #41317 skipped
......@@ -167,7 +167,7 @@ void AddArchiveMailDialog::slotUpdateOkButton()
void AddArchiveMailDialog::slotFolderChanged(const Akonadi::Collection &collection)
{
Q_UNUSED(collection);
Q_UNUSED(collection)
slotUpdateOkButton();
}
......
......@@ -112,11 +112,11 @@ Akonadi::Collection::Id ArchiveMailKernel::lastSelectedFolder()
void ArchiveMailKernel::setLastSelectedFolder(Akonadi::Collection::Id col)
{
Q_UNUSED(col);
Q_UNUSED(col)
}
void ArchiveMailKernel::expunge(Akonadi::Collection::Id col, bool sync)
{
Q_UNUSED(col);
Q_UNUSED(sync);
Q_UNUSED(col)
Q_UNUSED(sync)
}
......@@ -172,7 +172,7 @@ bool FollowUpReminderInfoWidget::save() const
void FollowUpReminderInfoWidget::slotCustomContextMenuRequested(const QPoint &pos)
{
Q_UNUSED(pos);
Q_UNUSED(pos)
const QList<QTreeWidgetItem *> listItems = mTreeWidget->selectedItems();
const int nbElementSelected = listItems.count();
if (nbElementSelected > 0) {
......
......@@ -88,8 +88,8 @@ void FollowUpReminderNoAnswerDialog::wakeUp()
void FollowUpReminderNoAnswerDialog::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();
......
......@@ -101,7 +101,7 @@ Akonadi::Collection::Id DummyKernel::lastSelectedFolder()
void DummyKernel::setLastSelectedFolder(Akonadi::Collection::Id col)
{
Q_UNUSED(col);
Q_UNUSED(col)
}
void DummyKernel::expunge(Akonadi::Collection::Id id, bool sync)
......
......@@ -358,7 +358,7 @@ FilterLogTextEdit::FilterLogTextEdit(QWidget *parent)
void FilterLogTextEdit::addExtraMenuEntry(QMenu *menu, QPoint pos)
{
Q_UNUSED(pos);
Q_UNUSED(pos)
if (!document()->isEmpty()) {
auto *sep = new QAction(menu);
sep->setSeparator(true);
......
......@@ -129,7 +129,7 @@ MailFilterAgent::~MailFilterAgent()
void MailFilterAgent::configure(WId windowId)
{
Q_UNUSED(windowId);
Q_UNUSED(windowId)
}
void MailFilterAgent::initializeCollections()
......
......@@ -118,7 +118,7 @@ Akonadi::Collection::Id MailKernel::lastSelectedFolder()
void MailKernel::setLastSelectedFolder(Akonadi::Collection::Id col)
{
Q_UNUSED(col);
Q_UNUSED(col)
}
void MailKernel::expunge(Akonadi::Collection::Id id, bool sync)
......
......@@ -218,7 +218,7 @@ void UnifiedMailboxAgent::retrieveItems(const Akonadi::Collection &c)
bool UnifiedMailboxAgent::retrieveItem(const Akonadi::Item &item, const QSet<QByteArray> &parts)
{
// This method should never be called by Akonadi
Q_UNUSED(parts);
Q_UNUSED(parts)
qCWarning(UNIFIEDMAILBOXAGENT_LOG) << "retrieveItem() for item" << item.id() << "called but we can't own any items! This is a bug in Akonadi";
return false;
}
......
......@@ -148,7 +148,7 @@ void CollectionMailingListPage::load(const Akonadi::Collection &col)
void CollectionMailingListPage::save(Akonadi::Collection &col)
{
Q_UNUSED(col);
Q_UNUSED(col)
if (changed) {
if (mFolder) {
// settings for mailingList
......
......@@ -163,7 +163,7 @@ QWidget *ConfigAgentDelegate::createEditor(QWidget *, const QStyleOptionViewItem
bool ConfigAgentDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
{
Q_UNUSED(model);
Q_UNUSED(model)
if (!index.isValid()) {
return false;
}
......
......@@ -1060,9 +1060,9 @@ void AppearancePage::MessageTagTab::slotEmitChangeCheck()
void AppearancePage::MessageTagTab::slotRowsMoved(const QModelIndex &, int sourcestart, int sourceEnd, const QModelIndex &, int destinationRow)
{
Q_UNUSED(sourceEnd);
Q_UNUSED(sourcestart);
Q_UNUSED(destinationRow);
Q_UNUSED(sourceEnd)
Q_UNUSED(sourcestart)
Q_UNUSED(destinationRow)
updateButtons();
slotEmitChangeCheck();
}
......
......@@ -99,7 +99,7 @@ void AttachmentView::saveHeaderState()
void AttachmentView::contextMenuEvent(QContextMenuEvent *event)
{
Q_UNUSED(event);
Q_UNUSED(event)
Q_EMIT contextMenuRequested();
}
......@@ -178,7 +178,7 @@ void AttachmentView::selectNewAttachment()
void AttachmentView::startDrag(Qt::DropActions supportedActions)
{
Q_UNUSED(supportedActions);
Q_UNUSED(supportedActions)
const QModelIndexList selection = selectionModel()->selectedRows();
if (!selection.isEmpty()) {
......
......@@ -42,7 +42,7 @@ KMComposerEditorNg::~KMComposerEditorNg()
void KMComposerEditorNg::addExtraMenuEntry(QMenu *menu, QPoint pos)
{
Q_UNUSED(pos);
Q_UNUSED(pos)
const QList<QAction *> lstAct = mComposerWin->pluginToolsActionListForPopupMenu();
for (QAction *a : lstAct) {
menu->addSeparator();
......@@ -111,7 +111,7 @@ QString KMComposerEditorNg::smartQuote(const QString &msg)
void KMComposerEditorNg::showSpellConfigDialog(const QString &configFileName)
{
Q_UNUSED(configFileName);
Q_UNUSED(configFileName)
QPointer<SpellCheckerConfigDialog> dialog = new SpellCheckerConfigDialog(this);
if (!spellCheckingLanguage().isEmpty()) {
dialog->setLanguage(spellCheckingLanguage());
......
......@@ -643,7 +643,7 @@ void KMComposerWin::addAttachment(const QVector<KMail::Composer::AttachmentInfo>
void KMComposerWin::addAttachment(const QString &name, KMime::Headers::contentEncoding cte, const QString &charset, const QByteArray &data, const QByteArray &mimeType)
{
Q_UNUSED(cte);
Q_UNUSED(cte)
mComposerBase->addAttachment(name, name, charset, data, mimeType);
}
......@@ -3742,7 +3742,7 @@ void KMComposerWin::slotIdentityDeleted(uint uoid)
void KMComposerWin::slotTransportRemoved(int id, const QString &name)
{
Q_UNUSED(name);
Q_UNUSED(name)
if (mComposerBase->transportComboBox()->currentTransportId() == id) {
mIncorrectIdentityFolderWarning->mailTransportIsInvalid();
}
......
......@@ -117,7 +117,7 @@ void CreateNewContactJob::createContact()
void CreateNewContactJob::contactStored(const Akonadi::Item &item)
{
Q_UNUSED(item);
Q_UNUSED(item)
PimCommon::BroadcastStatus::instance()->setStatusMsg(i18n("Contact created successfully"));
}
......
......@@ -1500,7 +1500,7 @@ MessageComposer::MessageSender *KMKernel::msgSender()
void KMKernel::transportRemoved(int id, const QString &name)
{
Q_UNUSED(id);
Q_UNUSED(id)
// reset all identities using the deleted transport
QStringList changedIdents;
......@@ -1531,7 +1531,7 @@ void KMKernel::transportRemoved(int id, const QString &name)
void KMKernel::transportRenamed(int id, const QString &oldName, const QString &newName)
{
Q_UNUSED(id);
Q_UNUSED(id)
QStringList changedIdents;
KIdentityManagement::IdentityManager *im = identityManager();
......@@ -1959,8 +1959,8 @@ void KMKernel::setShuttingDown(bool flag)
void KMKernel::expunge(Akonadi::Collection::Id col, bool sync)
{
Q_UNUSED(col);
Q_UNUSED(sync);
Q_UNUSED(col)
Q_UNUSED(sync)
}
#ifdef WITH_KUSERFEEDBACK
......
......@@ -1239,7 +1239,7 @@ void KMMainWidget::slotCollectionChanged(const Akonadi::Collection &collection,
void KMMainWidget::slotItemAdded(const Akonadi::Item &msg, const Akonadi::Collection &col)
{
Q_UNUSED(msg);
Q_UNUSED(msg)
if (col.isValid()) {
if (col == CommonKernel->outboxCollectionFolder()) {
startUpdateMessageActionsTimer();
......
......@@ -92,7 +92,7 @@ void SummaryWidget::slotCollectionChanged()
void SummaryWidget::updateSummary(bool force)
{
Q_UNUSED(force);
Q_UNUSED(force)
QTimer::singleShot(0, this, &SummaryWidget::slotUpdateFolderList);
}
......
......@@ -43,7 +43,7 @@ SummaryViewPart::SummaryViewPart(KontactInterface::Core *core, const KAboutData
: KParts::Part(parent)
, mCore(core)
{
Q_UNUSED(aboutData);
Q_UNUSED(aboutData)
setComponentName(QStringLiteral("kontactsummary"), i18n("Kontact Summary"));
loadLayout();
......
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