Commit 4253588b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Gerrit: Replace 0 with nullptr

Change-Id: I5e644c36ddd8a018dc2c8a3170e3d556d0ebefee
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent 0fbe2a12
......@@ -55,7 +55,7 @@ public:
explicit GerritDialog(const QSharedPointer<GerritParameters> &p,
const QSharedPointer<GerritServer> &s,
const QString &repository,
QWidget *parent = 0);
QWidget *parent = nullptr);
~GerritDialog();
QString repositoryPath() const;
void setCurrentPath(const QString &path);
......
......@@ -223,7 +223,7 @@ public:
QueryContext(const QStringList &queries,
const QSharedPointer<GerritParameters> &p,
const GerritServer &server,
QObject *parent = 0);
QObject *parent = nullptr);
~QueryContext();
......@@ -820,7 +820,7 @@ void GerritModel::queryFinished(const QByteArray &output)
void GerritModel::queriesFinished()
{
m_query->deleteLater();
m_query = 0;
m_query = nullptr;
setState(Idle);
emit refreshStateChanged(false);
}
......
......@@ -109,7 +109,7 @@ public:
GerritChangeRole = Qt::UserRole + 2,
SortRole = Qt::UserRole + 3
};
GerritModel(const QSharedPointer<GerritParameters> &, QObject *parent = 0);
GerritModel(const QSharedPointer<GerritParameters> &, QObject *parent = nullptr);
~GerritModel();
QVariant data(const QModelIndex &index, int role) const override;
......@@ -141,7 +141,7 @@ private:
const QSharedPointer<GerritParameters> m_parameters;
QSharedPointer<GerritServer> m_server;
QueryContext *m_query = 0;
QueryContext *m_query = nullptr;
QueryState m_state = Idle;
};
......
......@@ -47,7 +47,7 @@ class GerritOptionsWidget : public QWidget
{
Q_OBJECT
public:
explicit GerritOptionsWidget(QWidget *parent = 0);
explicit GerritOptionsWidget(QWidget *parent = nullptr);
GerritParameters parameters() const;
void setParameters(const GerritParameters &);
......@@ -65,8 +65,7 @@ class GerritOptionsPage : public VcsBase::VcsBaseOptionsPage
Q_OBJECT
public:
GerritOptionsPage(const QSharedPointer<GerritParameters> &p,
QObject *parent = 0);
GerritOptionsPage(const QSharedPointer<GerritParameters> &p, QObject *parent = nullptr);
~GerritOptionsPage();
QWidget *widget() override;
......
......@@ -93,7 +93,7 @@ public:
FetchContext(const QSharedPointer<GerritChange> &change,
const QString &repository, const Utils::FileName &git,
const GerritServer &server,
FetchMode fm, QObject *parent = 0);
FetchMode fm, QObject *parent = nullptr);
~FetchContext();
void start();
......
......@@ -56,7 +56,7 @@ class GerritPlugin : public QObject
{
Q_OBJECT
public:
explicit GerritPlugin(QObject *parent = 0);
explicit GerritPlugin(QObject *parent = nullptr);
~GerritPlugin();
bool initialize(Core::ActionContainer *ac);
......
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