Commit 4f13afdb authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary to create empty private class

parent 4eb42a2b
......@@ -29,18 +29,12 @@
using namespace Akonadi;
using namespace MailTransport;
class MailTransport::SendQueuedAction::Private
{
};
SendQueuedAction::SendQueuedAction()
: d(new Private)
{
}
SendQueuedAction::~SendQueuedAction()
{
delete d;
}
ItemFetchScope SendQueuedAction::fetchScope() const
......@@ -74,18 +68,12 @@ Job *SendQueuedAction::itemAction(const Item &item, FilterActionJob *parent) con
return new ItemModifyJob(cp, parent);
}
class MailTransport::ClearErrorAction::Private
{
};
ClearErrorAction::ClearErrorAction()
: d(new Private)
{
}
ClearErrorAction::~ClearErrorAction()
{
delete d;
}
ItemFetchScope ClearErrorAction::fetchScope() const
......@@ -111,19 +99,13 @@ Job *ClearErrorAction::itemAction(const Item &item, FilterActionJob *parent) con
return new ItemModifyJob(cp, parent);
}
class MailTransport::DispatchManualTransportAction::Private
{
};
DispatchManualTransportAction::DispatchManualTransportAction(int transportId)
: d(new Private)
, mTransportId(transportId)
: mTransportId(transportId)
{
}
DispatchManualTransportAction::~DispatchManualTransportAction()
{
delete d;
}
ItemFetchScope DispatchManualTransportAction::fetchScope() const
......
......@@ -53,10 +53,6 @@ public:
bool itemAccepted(const Akonadi::Item &item) const override;
Akonadi::Job *itemAction(const Akonadi::Item &item, Akonadi::FilterActionJob *parent) const override;
private:
class Private;
Private *const d;
};
/**
......@@ -84,10 +80,6 @@ public:
bool itemAccepted(const Akonadi::Item &item) const override;
virtual Akonadi::Job *itemAction(const Akonadi::Item &item, Akonadi::FilterActionJob *parent) const override;
private:
class Private;
Private *const d;
};
/**
......@@ -115,9 +107,6 @@ public:
virtual Akonadi::Job *itemAction(const Akonadi::Item &item, Akonadi::FilterActionJob *parent) const override;
private:
class Private;
Private *const d;
int mTransportId;
};
} // namespace MailTransport
......
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