Commit 9308f106 authored by Alexander Akulich's avatar Alexander Akulich
Browse files

Use nullptr keyword wherever it makes sense

Refactored with clang-tidy
parent cad9379d
......@@ -43,7 +43,7 @@ AbstractAccountUi* GabbleAccountUiPlugin::accountUi(const QString &connectionMan
return new GabbleAccountUi(serviceName, this);
}
return 0;
return nullptr;
}
K_PLUGIN_FACTORY(factory, registerPlugin<GabbleAccountUiPlugin>();)
......
......@@ -28,16 +28,16 @@ class GabbleAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit GabbleAccountUi(const QString &serviceName, QObject *parent = 0);
explicit GabbleAccountUi(const QString &serviceName, QObject *parent = nullptr);
~GabbleAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(GabbleAccountUi)
......
......@@ -32,7 +32,7 @@ class MainOptionsWidgetFacebook : public AbstractAccountParametersWidget
public:
explicit MainOptionsWidgetFacebook(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~MainOptionsWidgetFacebook() override;
void submit() override;
......
......@@ -33,7 +33,7 @@ class MainOptionsWidgetGoogleTalk : public AbstractAccountParametersWidget
public:
explicit MainOptionsWidgetGoogleTalk(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~MainOptionsWidgetGoogleTalk() override;
QString defaultDisplayName() const override;
......
......@@ -36,7 +36,7 @@ class MainOptionsWidgetKDETalk : public AbstractAccountParametersWidget
public:
explicit MainOptionsWidgetKDETalk(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~MainOptionsWidgetKDETalk() override;
void submit() override;
......
......@@ -32,7 +32,7 @@ class MainOptionsWidgetMSN : public AbstractAccountParametersWidget
public:
explicit MainOptionsWidgetMSN(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~MainOptionsWidgetMSN() override;
void submit() override;
......
......@@ -31,7 +31,7 @@ class MainOptionsWidget : public AbstractAccountParametersWidget
public:
explicit MainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~MainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -31,7 +31,7 @@ class ProxySettingsWidget : public AbstractAccountParametersWidget
public:
explicit ProxySettingsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~ProxySettingsWidget() override;
private:
......
......@@ -31,7 +31,7 @@ class ServerSettingsWidget : public AbstractAccountParametersWidget
public:
explicit ServerSettingsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~ServerSettingsWidget() override;
private:
......
......@@ -33,7 +33,7 @@ class AimMainOptionsWidget
Q_DISABLE_COPY(AimMainOptionsWidget)
public:
explicit AimMainOptionsWidget(ParameterEditModel* model, QWidget* parent = 0);
explicit AimMainOptionsWidget(ParameterEditModel* model, QWidget* parent = nullptr);
~AimMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -31,7 +31,7 @@ class AimServerSettingsWidget : public AbstractAccountParametersWidget
public:
explicit AimServerSettingsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~AimServerSettingsWidget() override;
private:
......
......@@ -30,7 +30,7 @@ class GroupWiseAdvancedSettingsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit GroupWiseAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit GroupWiseAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~GroupWiseAdvancedSettingsWidget() override;
private:
......
......@@ -29,7 +29,7 @@ class GroupWiseMainOptionsWidget : public AbstractAccountParametersWidget
{
Q_OBJECT
public:
explicit GroupWiseMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit GroupWiseMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~GroupWiseMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -83,7 +83,7 @@ AbstractAccountUi* HazeAccountUiPlugin::accountUi(const QString &connectionManag
}
}
return 0;
return nullptr;
}
......
......@@ -28,16 +28,16 @@ class HazeAimAccount : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeAimAccount(QObject *parent = 0);
explicit HazeAimAccount(QObject *parent = nullptr);
~HazeAimAccount() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeAimAccount)
......
......@@ -28,16 +28,16 @@ class HazeGroupWiseAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeGroupWiseAccountUi(QObject *parent = 0);
explicit HazeGroupWiseAccountUi(QObject *parent = nullptr);
~HazeGroupWiseAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeGroupWiseAccountUi)
......
......@@ -28,16 +28,16 @@ class HazeIcqAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeIcqAccountUi(QObject *parent = 0);
explicit HazeIcqAccountUi(QObject *parent = nullptr);
~HazeIcqAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeIcqAccountUi)
......
......@@ -28,11 +28,11 @@ class HazeMsnAccountUi: public AbstractAccountUi
Q_OBJECT
public:
explicit HazeMsnAccountUi(QObject *parent = 0);
explicit HazeMsnAccountUi(QObject *parent = nullptr);
~HazeMsnAccountUi() override;
// virtual AbstractAccountParametersWidget *advancedOptionsWidget(ParameterEditModel *model, QWidget *parent = 0) const;
AbstractAccountParametersWidget *mainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0) const override;
AbstractAccountParametersWidget *mainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
private:
......
......@@ -28,16 +28,16 @@ class HazeMySpaceIMAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeMySpaceIMAccountUi(QObject *parent = 0);
explicit HazeMySpaceIMAccountUi(QObject *parent = nullptr);
~HazeMySpaceIMAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeMySpaceIMAccountUi)
......
......@@ -28,16 +28,16 @@ class HazeSipeAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeSipeAccountUi(QObject *parent = 0);
explicit HazeSipeAccountUi(QObject *parent = nullptr);
~HazeSipeAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
AbstractAccountParametersWidget
*advancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeSipeAccountUi)
......
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