Commit 05bc02ec authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: pedantic

parent 99fd37a7
Pipeline #41461 skipped
......@@ -34,7 +34,7 @@ void FreeBusyGanttProxyModelTest::testModelValidity()
ganttModel->setSourceModel(fbModel);
auto *modelTest = new QAbstractItemModelTester(ganttModel);
Q_UNUSED(modelTest);
Q_UNUSED(modelTest)
QVERIFY(ganttModel->rowCount() == 0);
......
......@@ -233,7 +233,7 @@ QMimeData *AttachmentIconView::mimeData() const
void AttachmentIconView::startDrag(Qt::DropActions supportedActions)
{
Q_UNUSED(supportedActions);
Q_UNUSED(supportedActions)
#ifndef QT_NO_DRAGANDDROP
QPixmap pixmap;
if (selectedItems().size() > 1) {
......
......@@ -367,7 +367,7 @@ void AttendeeLine::slotHandleChange()
void AttendeeLine::slotTextChanged(const QString &str)
{
Q_UNUSED(str);
Q_UNUSED(str)
mModified = true;
Q_EMIT changed(); // TODO: This doesn't seem connected to anywhere in incidenceattendee.cpp.
// but the important code is run in slotHandleChange() anyway so we don't see any bug
......
......@@ -29,8 +29,8 @@ AttendeeLineEditDelegate::AttendeeLineEditDelegate(QObject *parent)
QWidget *AttendeeLineEditDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
Q_UNUSED(option)
Q_UNUSED(index)
auto *editor = new AttendeeLineEdit(parent);
connect(editor, &AttendeeLineEdit::leftPressed, this, &AttendeeLineEditDelegate::leftPressed);
connect(editor, &AttendeeLineEdit::rightPressed, this, &AttendeeLineEditDelegate::rightPressed);
......@@ -56,7 +56,7 @@ void AttendeeLineEditDelegate::setModelData(QWidget *editor, QAbstractItemModel
void AttendeeLineEditDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
editor->setGeometry(option.rect);
}
......
......@@ -146,7 +146,7 @@ void ItemEditorPrivate::itemMoveResult(KJob *job)
if (job->error()) {
auto *moveJob = qobject_cast<Akonadi::ItemMoveJob *>(job);
Q_ASSERT(moveJob);
Q_UNUSED(moveJob);
Q_UNUSED(moveJob)
//Q_ASSERT(!moveJob->items().isEmpty());
// TODO: What is reasonable behavior at this point?
qCCritical(INCIDENCEEDITOR_LOG) << "Error while moving item ";// << moveJob->items().first().id() << " to collection "
......
......@@ -44,7 +44,7 @@ void GroupwareUiDelegate::requestIncidenceEditor(const Akonadi::Item &item)
void GroupwareUiDelegate::setCalendar(const Akonadi::ETMCalendar::Ptr &calendar)
{
// We don't need a calendar.
Q_UNUSED(calendar);
Q_UNUSED(calendar)
}
void GroupwareUiDelegate::createCalendar()
......
......@@ -702,7 +702,7 @@ void IncidenceAttendee::slotGroupSubstitutionAttendeeChanged(const QModelIndex &
void IncidenceAttendee::slotGroupSubstitutionAttendeeAdded(const QModelIndex &index, int first, int last)
{
Q_UNUSED(index);
Q_UNUSED(index)
for (int i = first; i <= last; ++i) {
QModelIndex email = dataModel()->index(i, AttendeeTableModel::Email);
KCalendarCore::Attendee attendee
......@@ -715,7 +715,7 @@ void IncidenceAttendee::slotGroupSubstitutionAttendeeAdded(const QModelIndex &in
void IncidenceAttendee::slotGroupSubstitutionAttendeeRemoved(const QModelIndex &index, int first, int last)
{
Q_UNUSED(index);
Q_UNUSED(index)
for (int i = first; i <= last; ++i) {
QModelIndex email = dataModel()->index(i, AttendeeTableModel::Email);
KCalendarCore::Attendee attendee
......
......@@ -30,7 +30,7 @@ IncidenceCategories::IncidenceCategories(Ui::EventOrTodoDesktop *ui)
void IncidenceCategories::onSelectionChanged(const Akonadi::Tag::List &list)
{
Q_UNUSED(list);
Q_UNUSED(list)
mDirty = true;
checkDirtyStatus();
}
......
......@@ -685,7 +685,7 @@ Akonadi::Collection IncidenceDialogPrivate::selectedCollection() const
void IncidenceDialogPrivate::reject(RejectReason reason, const QString &errorMessage)
{
Q_UNUSED(reason);
Q_UNUSED(reason)
Q_Q(IncidenceDialog);
qCCritical(INCIDENCEEDITOR_LOG) << "Rejecting:" << errorMessage;
......
......@@ -69,12 +69,12 @@ void IncidenceEditor::printDebugInfo() const
void IncidenceEditor::load(const Akonadi::Item &item)
{
Q_UNUSED(item);
Q_UNUSED(item)
}
void IncidenceEditor::save(Akonadi::Item &item)
{
Q_UNUSED(item);
Q_UNUSED(item)
}
#include "moc_incidenceeditor-ng.cpp"
......@@ -110,7 +110,7 @@ IncidenceResource::~IncidenceResource()
void IncidenceResource::load(const KCalendarCore::Incidence::Ptr &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
slotDateChanged();
}
......@@ -121,7 +121,7 @@ void IncidenceResource::slotDateChanged()
void IncidenceResource::save(const KCalendarCore::Incidence::Ptr &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
//all logic inside IncidenceAtendee (using same model)
}
......
......@@ -197,7 +197,7 @@ void IndividualMailITIPHandlerDialogDelegate::openDialogIncidenceCreated(Recipie
void IndividualMailITIPHandlerDialogDelegate::openDialogIncidenceModified(
bool attendeeStatusChanged, Recipient recipient, const QString &question, Action action, const KGuiItem &buttonYes, const KGuiItem &buttonNo)
{
Q_UNUSED(attendeeStatusChanged);
Q_UNUSED(attendeeStatusChanged)
if (recipient == Attendees) {
openDialog(question, mIncidence->attendees(), action, buttonYes, buttonNo);
} else {
......
......@@ -138,7 +138,7 @@ const KLDAP::LdapClient &ResourceItem::ldapClient() const
void ResourceItem::slotLDAPResult(const KLDAP::LdapClient &client, const KLDAP::LdapObject &obj)
{
Q_UNUSED(client);
Q_UNUSED(client)
mLdapObject = obj;
for (const QString &header : qAsConst(mAttrs)) {
if (!obj.attributes()[header].isEmpty()) {
......
......@@ -52,7 +52,7 @@ public:
QString displayName(const KCalendarCore::Incidence::Ptr &incidence) const override
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
return QStringLiteral("Freebusy");
}
......@@ -82,7 +82,7 @@ public:
QString iconForIncidence(const KCalendarCore::Incidence::Ptr &incidence) const override
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
return QString();
}
......
......@@ -164,7 +164,7 @@ void SchedulingDialog::slotMandatoryRolesChanged()
void SchedulingDialog::slotRowSelectionChanged(const QModelIndex &current, const QModelIndex &previous)
{
Q_UNUSED(previous);
Q_UNUSED(previous)
if (!current.isValid()) {
mMoveApptGroupBox->hide();
return;
......
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