Commit 375f51df authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

fix some cppcheck warnings

parent e60da3b0
Pipeline #83905 passed with stage
in 8 minutes and 3 seconds
......@@ -64,7 +64,7 @@ Q_GLOBAL_STATIC(SessionPool, s_sessionPool)
class SmtpJobPrivate
{
public:
SmtpJobPrivate(SmtpJob *parent)
explicit SmtpJobPrivate(SmtpJob *parent)
: q(parent)
{
}
......
......@@ -23,7 +23,7 @@ using namespace MailTransport;
class PreCommandJobPrivate
{
public:
PreCommandJobPrivate(PrecommandJob *parent);
explicit PreCommandJobPrivate(PrecommandJob *parent);
QProcess *process = nullptr;
QString precommand;
PrecommandJob *const q;
......
......@@ -119,7 +119,7 @@ protected:
Creates a Transport object. Should only be used by TransportManager.
@param cfgGroup The KConfig group to read its data from.
*/
Transport(const QString &cfgGroup);
explicit Transport(const QString &cfgGroup);
void usrRead() override;
bool usrSave() override;
......
......@@ -83,7 +83,7 @@ public:
class DispatchManualTransportAction : public Akonadi::FilterAction
{
public:
DispatchManualTransportAction(int transportId);
explicit DispatchManualTransportAction(int transportId);
~DispatchManualTransportAction() override;
......
......@@ -22,9 +22,9 @@ public:
Private(const Private &other)
: QSharedData(other)
, mType(other.mType)
, mValue(other.mValue)
{
mType = other.mType;
mValue = other.mValue;
}
Type mType = Invalid;
......
Supports Markdown
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