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)
......
......@@ -28,16 +28,16 @@ class HazeSkypeAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeSkypeAccountUi(QObject *parent = 0);
explicit HazeSkypeAccountUi(QObject *parent = nullptr);
~HazeSkypeAccountUi() 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(HazeSkypeAccountUi)
......
......@@ -28,12 +28,12 @@ class HazeSkypeWebAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeSkypeWebAccountUi(QObject *parent = 0);
explicit HazeSkypeWebAccountUi(QObject *parent = nullptr);
~HazeSkypeWebAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
bool hasAdvancedOptionsWidget() const override;
private:
......
......@@ -28,12 +28,12 @@ class HazeSteamAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeSteamAccountUi(QObject *parent = 0);
explicit HazeSteamAccountUi(QObject *parent = nullptr);
~HazeSteamAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0) const override;
QWidget *parent = nullptr) const override;
private:
Q_DISABLE_COPY(HazeSteamAccountUi)
......
......@@ -30,16 +30,16 @@ class HazeYahooAccount : public AbstractAccountUi
Q_OBJECT
public:
explicit HazeYahooAccount(QObject *parent = 0);
explicit HazeYahooAccount(QObject *parent = nullptr);
~HazeYahooAccount() 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(HazeYahooAccount)
......
......@@ -30,7 +30,7 @@ class IcqMainOptionsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit IcqMainOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~IcqMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -31,7 +31,7 @@ class IcqServerSettingsWidget : public AbstractAccountParametersWidget
public:
explicit IcqServerSettingsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~IcqServerSettingsWidget() override;
void submit() override;
......
......@@ -30,7 +30,7 @@ class MsnMainOptionsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit MsnMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit MsnMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~MsnMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -30,7 +30,7 @@ class MySpaceIMAdvancedSettingsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit MySpaceIMAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit MySpaceIMAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~MySpaceIMAdvancedSettingsWidget() override;
private:
......
......@@ -29,7 +29,7 @@ class MySpaceIMMainOptionsWidget : public AbstractAccountParametersWidget
{
Q_OBJECT
public:
explicit MySpaceIMMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit MySpaceIMMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~MySpaceIMMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -30,7 +30,7 @@ class SipeAdvancedSettingsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit SipeAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit SipeAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~SipeAdvancedSettingsWidget() override;
private:
......
......@@ -29,7 +29,7 @@ class SipeMainOptionsWidget : public AbstractAccountParametersWidget
{
Q_OBJECT
public:
explicit SipeMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit SipeMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~SipeMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -30,7 +30,7 @@ class SkypeAdvancedSettingsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit SkypeAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit SkypeAdvancedSettingsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~SkypeAdvancedSettingsWidget() override;
private:
......
......@@ -29,7 +29,7 @@ class SkypeMainOptionsWidget : public AbstractAccountParametersWidget
{
Q_OBJECT
public:
explicit SkypeMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit SkypeMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~SkypeMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -30,7 +30,7 @@ class SkypeWebOptionsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit SkypeWebOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~SkypeWebOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -29,7 +29,7 @@ class SteamMainOptionsWidget : public AbstractAccountParametersWidget
{
Q_OBJECT
public:
explicit SteamMainOptionsWidget(ParameterEditModel *model, QWidget *parent = 0);
explicit SteamMainOptionsWidget(ParameterEditModel *model, QWidget *parent = nullptr);
~SteamMainOptionsWidget() override;
QString defaultDisplayName() const override;
......
......@@ -31,7 +31,7 @@ class YahooMainOptionsWidget : public AbstractAccountParametersWidget
Q_OBJECT
public:
explicit YahooMainOptionsWidget(ParameterEditModel* model, QWidget* parent = 0);
explicit YahooMainOptionsWidget(ParameterEditModel* model, QWidget* parent = nullptr);
~YahooMainOptionsWidget() override;
void submit() override;
......
......@@ -31,7 +31,7 @@ class YahooServerSettingsWidget : public AbstractAccountParametersWidget
public:
explicit YahooServerSettingsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~YahooServerSettingsWidget() override;
private:
......
......@@ -31,7 +31,7 @@ class AdvancedOptionsWidget : public AbstractAccountParametersWidget
public:
explicit AdvancedOptionsWidget(ParameterEditModel *model,
QWidget *parent = 0);
QWidget *parent = nullptr);
~AdvancedOptionsWidget() override;
private:
......
......@@ -45,7 +45,7 @@ AbstractAccountUi* IdleAccountUiPlugin::accountUi(const QString &connectionManag
return new IdleAccountUi;
}
return 0;
return nullptr;
}
K_PLUGIN_FACTORY(factory, registerPlugin<IdleAccountUiPlugin>();)
......
......@@ -28,16 +28,16 @@ class IdleAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit IdleAccountUi(QObject *parent = 0);
explicit IdleAccountUi(QObject *parent = nullptr);
~IdleAccountUi() 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(IdleAccountUi)
};
......
......@@ -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;
......
......@@ -75,7 +75,7 @@ KAccountsUiProvider::KAccountsUiProvider(QObject *parent)
: KAccountsUiPlugin(parent),
d(new Private)
{
d->accountEditWidget = 0;
d->accountEditWidget = nullptr;
d->reconnectRequired = false;
Tp::registerTypes();
......
......@@ -36,7 +36,7 @@ class KAccountsUiProvider : public KAccountsUiPlugin
Q_INTERFACES(KAccountsUiPlugin)
public:
KAccountsUiProvider(QObject *parent = 0);
KAccountsUiProvider(QObject *parent = nullptr);
~KAccountsUiProvider() override;
void init(KAccountsUiPlugin::UiType type) 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;
......
......@@ -46,7 +46,7 @@ AbstractAccountUi* MorseAccountUiPlugin::accountUi(const QString &connectionMana
return new TelegramAccountUi;
}
return 0;
return nullptr;
}
K_PLUGIN_FACTORY(factory, registerPlugin<MorseAccountUiPlugin>();)
......
......@@ -28,12 +28,12 @@ class TelegramAccountUi : public AbstractAccountUi
Q_OBJECT
public:
explicit TelegramAccountUi(QObject *parent = 0);
explicit TelegramAccountUi(QObject *parent = nullptr);
~TelegramAccountUi() override;
AbstractAccountParametersWidget
*mainOptionsWidget(ParameterEditModel *model,