Gerrit: Replace 0 with nullptr

Change-Id: I5e644c36ddd8a018dc2c8a3170e3d556d0ebefee
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2017-02-13 23:02:09 +02:00
committed by Orgad Shaneh
parent 0fbe2a125b
commit 4253588b96
6 changed files with 9 additions and 10 deletions

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -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;
};

View File

@@ -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;

View File

@@ -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();

View File

@@ -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);