Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 00c3b3d6 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some clazy warning

parent 50c038ce
......@@ -109,14 +109,14 @@ void ITIPHandlerTest::initTestCase()
m_changer->setGroupwareCommunication(true);
m_changer->setInvitationPolicy(IncidenceChanger::InvitationPolicySend); // don't show dialogs
connect(m_changer, SIGNAL(createFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)),
SLOT(onCreateFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)));
connect(m_changer, &IncidenceChanger::createFinished,
this, &ITIPHandlerTest::onCreateFinished);
connect(m_changer, SIGNAL(deleteFinished(int,QVector<Akonadi::Item::Id>,Akonadi::IncidenceChanger::ResultCode,QString)),
SLOT(onDeleteFinished(int,QVector<Akonadi::Item::Id>,Akonadi::IncidenceChanger::ResultCode,QString)));
connect(m_changer, &IncidenceChanger::deleteFinished,
this, &ITIPHandlerTest::onDeleteFinished);
connect(m_changer, SIGNAL(modifyFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)),
SLOT(onModifyFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)));
connect(m_changer, &IncidenceChanger::modifyFinished,
this, &ITIPHandlerTest::onModifyFinished);
}
void ITIPHandlerTest::testProcessITIPMessage_data()
......@@ -187,10 +187,10 @@ void ITIPHandlerTest::testProcessITIPMessage_data()
// Process a REQUEST without having the incidence in our calendar.
// itiphandler should return success and add the rquest to a calendar
expectedResult = ITIPHandler::ResultSuccess;
data_filename = QLatin1String("invited_us");
data_filename = QStringLiteral("invited_us");
expectedNumIncidences = 1;
expectedPartStat = KCalCore::Attendee::NeedsAction;
action = QLatin1String("request");
action = QStringLiteral("request");
QTest::newRow("invited us5") << data_filename << action << receiver << incidenceUid
<< expectedResult
<< expectedNumIncidences
......@@ -631,8 +631,8 @@ void ITIPHandlerTest::createITIPHandler()
{
m_itipHandler = new Akonadi::ITIPHandler(new FakeITIPHandlerComponentFactory(this), this);
m_itipHandler->setShowDialogsOnError(false);
connect(m_itipHandler, SIGNAL(iTipMessageProcessed(Akonadi::ITIPHandler::Result,QString)),
SLOT(oniTipMessageProcessed(Akonadi::ITIPHandler::Result,QString)));
connect(m_itipHandler, &ITIPHandler::iTipMessageProcessed,
this, &ITIPHandlerTest::oniTipMessageProcessed);
}
QString ITIPHandlerTest::icalData(const QString &data_filename)
......
......@@ -103,8 +103,8 @@ private Q_SLOTS:
mPendingSignals = 0;
mMailClient = new MailClient(new FakeITIPHandlerComponentFactory(this), this);
mLastResult = MailClient::ResultSuccess;
connect(mMailClient, SIGNAL(finished(Akonadi::MailClient::Result,QString)),
SLOT(handleFinished(Akonadi::MailClient::Result,QString)));
connect(mMailClient, &MailClient::finished,
this, &MailClientTest::handleFinished);
}
void cleanupTestCase()
......
......@@ -539,7 +539,7 @@ KCalCore::Incidence::List CalendarBase::childIncidences(const QString &parentUid
return children;
}
Akonadi::Item::List CalendarBase::childItems(const Akonadi::Item::Id &parentId) const
Akonadi::Item::List CalendarBase::childItems(Akonadi::Item::Id parentId) const
{
Q_D(const CalendarBase);
Akonadi::Item::List childs;
......
......@@ -119,7 +119,7 @@ public:
* Only the direct childs are returned
* @param parentId identifier of the parent item
*/
Q_REQUIRED_RESULT Akonadi::Item::List childItems(const Akonadi::Item::Id &parentId) const;
Q_REQUIRED_RESULT Akonadi::Item::List childItems(Item::Id parentId) const;
/**
* Sets the weak pointer that's associated with this instance.
......
......@@ -49,7 +49,7 @@ public:
void CalFilterPartStatusProxyModel::slotIdentitiesChanged()
{
emit invalidate();
invalidate();
}
CalFilterPartStatusProxyModel::CalFilterPartStatusProxyModel(QObject *parent)
......
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