Commit 2619fede authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 57670d37
......@@ -106,6 +106,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeMonitorCommand : public FakeAkonadiServerCommand
{
Q_OBJECT
public:
explicit FakeMonitorCommand(FakeServerData *serverData)
: FakeAkonadiServerCommand(Notification, serverData)
......@@ -118,6 +119,7 @@ public:
class AKONADITESTFAKE_EXPORT FakeCollectionMovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeCollectionMovedCommand(const QString &collection, const QString &source, const QString &target, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -141,6 +143,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeCollectionAddedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeCollectionAddedCommand(const QString &collection, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -162,6 +165,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeCollectionRemovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeCollectionRemovedCommand(const QString &collection, const QString &source, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -183,6 +187,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeCollectionChangedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeCollectionChangedCommand(const QString &collection, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -211,6 +216,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeItemMovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeItemMovedCommand(const QString &item, const QString &source, const QString &target, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -234,6 +240,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeItemAddedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeItemAddedCommand(const QString &item, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -255,6 +262,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeItemRemovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeItemRemovedCommand(const QString &item, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -277,6 +285,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeItemChangedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeItemChangedCommand(const QString &item, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -298,6 +307,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeTagAddedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeTagAddedCommand(const QString &tag, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -319,6 +329,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeTagChangedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeTagChangedCommand(const QString &tag, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -340,6 +351,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeTagMovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeTagMovedCommand(const QString &tag, const QString &oldParent, const QString &newParent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -363,6 +375,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeTagRemovedCommand : public FakeMonitorCommand
{
Q_OBJECT
public:
FakeTagRemovedCommand(const QString &tag, const QString &parent, FakeServerData *serverData)
: FakeMonitorCommand(serverData)
......@@ -384,6 +397,7 @@ private:
class AKONADITESTFAKE_EXPORT FakeJobResponse : public FakeAkonadiServerCommand
{
Q_OBJECT
struct Token {
enum Type {
Branch,
......
......@@ -694,7 +694,7 @@ public:
for (const Collection &collection : collections) {
CollectionDeleteJob *job = new CollectionDeleteJob(collection, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(collectionDeletionResult(KJob*)));
q->connect(job, &CollectionDeleteJob::result, q, [this](KJob* job) { collectionDeletionResult(job); });
}
}
......@@ -707,7 +707,7 @@ public:
for (const Collection &collection : collections) {
TrashJob *job = new TrashJob(collection, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(moveCollectionToTrashResult(KJob*)));
q->connect(job, &TrashJob::result, q, [this](KJob *job) { moveCollectionToTrashResult(job);});
}
}
......@@ -720,7 +720,7 @@ public:
for (const Collection &collection : collections) {
TrashRestoreJob *job = new TrashRestoreJob(collection, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(moveCollectionToTrashResult(KJob*)));
q->connect(job, &TrashRestoreJob::result, q, [this](KJob*job) {moveCollectionToTrashResult(job);});
}
}
......@@ -751,7 +751,7 @@ public:
}
TrashJob *job = new TrashJob(items, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(moveItemToTrashResult(KJob*)));
q->connect(job, &TrashJob::result, q, [this](KJob *job) {moveItemToTrashResult(job); });
}
void slotRestoreItemFromTrash()
......@@ -762,7 +762,7 @@ public:
}
TrashRestoreJob *job = new TrashRestoreJob(items, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(moveItemToTrashResult(KJob*)));
q->connect(job, &TrashRestoreJob::result, q, [this](KJob *job) {moveItemToTrashResult(job);});
}
void slotTrashRestoreCollection()
......@@ -962,7 +962,7 @@ public:
}
ItemDeleteJob *job = new ItemDeleteJob(items, q);
q->connect(job, SIGNAL(result(KJob*)), q, SLOT(itemDeletionResult(KJob*)));
q->connect(job, &ItemDeleteJob::result, q, [this](KJob*job) {itemDeletionResult(job);});
}
void slotLocalSubscription()
......
......@@ -412,10 +412,7 @@ private:
Q_PRIVATE_SLOT(d, void slotToggleWorkOffline(bool))
Q_PRIVATE_SLOT(d, void slotSynchronizeCollectionTree())
Q_PRIVATE_SLOT(d, void collectionCreationResult(KJob *))
Q_PRIVATE_SLOT(d, void collectionDeletionResult(KJob *))
Q_PRIVATE_SLOT(d, void moveCollectionToTrashResult(KJob *))
Q_PRIVATE_SLOT(d, void moveItemToTrashResult(KJob *))
Q_PRIVATE_SLOT(d, void itemDeletionResult(KJob *))
Q_PRIVATE_SLOT(d, void resourceCreationResult(KJob *))
Q_PRIVATE_SLOT(d, void pasteResult(KJob *))
......
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