Commit 099b6941 authored by Laurent Montel's avatar Laurent Montel 😁

Add missing explicit

parent 4bbda66f
......@@ -22,7 +22,7 @@
#include <QFile>
EwsAbstractAuth::EwsAbstractAuth(QObject *parent)
: QObject(parent), mAuthParentWidget(nullptr)
: QObject(parent)
{
}
......
......@@ -66,7 +66,7 @@ class EwsAbstractAuth : public QObject
{
Q_OBJECT
public:
EwsAbstractAuth(QObject *parent = nullptr);
explicit EwsAbstractAuth(QObject *parent = nullptr);
~EwsAbstractAuth() override = default;
virtual void init() = 0;
virtual bool getAuthData(QString &username, QString &password, QStringList &customHeaders) = 0;
......@@ -90,7 +90,7 @@ Q_SIGNALS:
void setWalletPassword(const QString &password);
void setWalletMap(const QMap<QString, QString> &map);
protected:
QWidget *mAuthParentWidget;
QWidget *mAuthParentWidget = nullptr;
QString mPKeyCertFile;
QString mPKeyKeyFile;
};
......
......@@ -25,7 +25,7 @@ class EwsPasswordAuth : public EwsAbstractAuth
{
Q_OBJECT
public:
EwsPasswordAuth(const QString &username, QObject *parent = nullptr);
explicit EwsPasswordAuth(const QString &username, QObject *parent = nullptr);
~EwsPasswordAuth() override = default;
void init() override;
......
......@@ -144,7 +144,7 @@ QByteArray EwsPKeyAuthJob::buildAuthResponse(const QMap<QString, QString> &param
}
QCA::Certificate cert;
for (const auto c : certs.certificates()) {
for (const auto &c : certs.certificates()) {
if (c.issuerInfo() == authoritiesInfo) {
cert = c;
break;
......
......@@ -29,7 +29,7 @@ class EwsFindFolderRequest : public EwsRequest
{
Q_OBJECT
public:
EwsFindFolderRequest(EwsClient &client, QObject *parent);
explicit EwsFindFolderRequest(EwsClient &client, QObject *parent);
~EwsFindFolderRequest() override;
void setParentFolderId(const EwsId &id);
......
......@@ -29,7 +29,7 @@ class EwsFindItemRequest : public EwsRequest
{
Q_OBJECT
public:
EwsFindItemRequest(EwsClient &client, QObject *parent);
explicit EwsFindItemRequest(EwsClient &client, QObject *parent);
~EwsFindItemRequest() override;
void setFolderId(const EwsId &id);
......
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