Commit 075989dc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_NULLPTR when possible

parent 85dd7880
......@@ -91,7 +91,7 @@ public Q_SLOTS:
class InspectableETM: public EntityTreeModel
{
public:
explicit InspectableETM(ChangeRecorder *monitor, QObject *parent = 0)
explicit InspectableETM(ChangeRecorder *monitor, QObject *parent = Q_NULLPTR)
: EntityTreeModel(monitor, parent) {}
EntityTreeModelPrivate *etmPrivate()
{
......
......@@ -31,7 +31,7 @@ class FakeJob : public Job
{
Q_OBJECT
public:
explicit FakeJob(QObject *parent = 0) : Job(parent) {}
explicit FakeJob(QObject *parent = Q_NULLPTR) : Job(parent) {}
void done()
{
emitResult();
......
......@@ -24,7 +24,7 @@ class TagSelectWidgetTest : public QObject
{
Q_OBJECT
public:
explicit TagSelectWidgetTest(QObject *parent = 0);
explicit TagSelectWidgetTest(QObject *parent = Q_NULLPTR);
~TagSelectWidgetTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
......
......@@ -37,7 +37,7 @@ class FakeClient : public QThread
public:
FakeClient(QObject *parent = 0);
FakeClient(QObject *parent = Q_NULLPTR);
~FakeClient();
void setScenarios(const TestScenario::List &scenarios);
......
......@@ -32,8 +32,8 @@ class FakeConnection : public Connection
Q_OBJECT
public:
FakeConnection(quintptr socketDescriptor, QObject *parent = 0);
FakeConnection(QObject *parent = 0);
FakeConnection(quintptr socketDescriptor, QObject *parent = Q_NULLPTR);
FakeConnection(QObject *parent = Q_NULLPTR);
virtual ~FakeConnection();
DataStore *storageBackend() Q_DECL_OVERRIDE;
......
......@@ -91,7 +91,7 @@ public:
virtual void activeCachePolicy(Collection &col) Q_DECL_OVERRIDE;
virtual bool appendMimeType(const QString &mimetype,
qint64 *insertId = 0) Q_DECL_OVERRIDE;
qint64 *insertId = Q_NULLPTR) Q_DECL_OVERRIDE;
virtual bool appendPimItem(QVector<Part> &parts,
const MimeType &mimetype,
const Collection &collection,
......
......@@ -33,7 +33,7 @@ class FakeSearchManager : public SearchManager
Q_OBJECT
public:
explicit FakeSearchManager(QObject *parent = 0);
explicit FakeSearchManager(QObject *parent = Q_NULLPTR);
virtual ~FakeSearchManager();
void registerInstance(const QString &id) Q_DECL_OVERRIDE;
......
......@@ -38,7 +38,7 @@ class AgentServer : public QObject
typedef QPair<QString, qlonglong> ConfigureInfo;
public:
explicit AgentServer(QObject *parent = 0);
explicit AgentServer(QObject *parent = Q_NULLPTR);
~AgentServer();
public Q_SLOTS:
......
......@@ -39,7 +39,7 @@ public:
* @param factory The factory object that creates the agent instance.
* @param parent The parent object.
*/
AgentThread(const QString &identifier, QObject *factory, QObject *parent = 0);
AgentThread(const QString &identifier, QObject *factory, QObject *parent = Q_NULLPTR);
/**
* Configures the agent.
......
......@@ -53,7 +53,7 @@ public:
*
* @param parent The parent object.
*/
AgentManager(bool verbose, QObject *parent = 0);
AgentManager(bool verbose, QObject *parent = Q_NULLPTR);
/**
* Destroys the agent manager.
......
......@@ -34,7 +34,7 @@ public:
/**
* Creates a new control manager.
*/
ControlManager(QObject *parent = 0);
explicit ControlManager(QObject *parent = Q_NULLPTR);
/**
* Destroys the control manager.
......
......@@ -51,7 +51,7 @@ public:
*
* @param parent The parent object.
*/
ProcessControl(QObject *parent = 0);
explicit ProcessControl(QObject *parent = Q_NULLPTR);
/**
* Destroys the process control.
......
......@@ -26,7 +26,7 @@ class AkonadiStarter : public QObject
{
Q_OBJECT
public:
explicit AkonadiStarter(QObject *parent = 0);
explicit AkonadiStarter(QObject *parent = Q_NULLPTR);
bool start(bool verbose);
private Q_SLOTS:
......
......@@ -32,7 +32,7 @@ class Session : public QObject
{
Q_OBJECT
public:
explicit Session(const QString &input, QObject *parent = 0);
explicit Session(const QString &input, QObject *parent = Q_NULLPTR);
~Session();
void printStats() const;
......
......@@ -43,7 +43,7 @@ public:
* @param relation The relation to create.
* @param parent The parent object.
*/
explicit RelationCreateJob(const Relation &relation, QObject *parent = 0);
explicit RelationCreateJob(const Relation &relation, QObject *parent = Q_NULLPTR);
/**
* Returns the relation.
......
......@@ -43,7 +43,7 @@ public:
* @param relation The relation to delete.
* @param parent The parent object.
*/
explicit RelationDeleteJob(const Relation &relation, QObject *parent = 0);
explicit RelationDeleteJob(const Relation &relation, QObject *parent = Q_NULLPTR);
/**
* Returns the relation.
......
......@@ -44,9 +44,9 @@ public:
* @param relation The relation to fetch.
* @param parent The parent object.
*/
explicit RelationFetchJob(const Relation &relation, QObject *parent = 0);
explicit RelationFetchJob(const Relation &relation, QObject *parent = Q_NULLPTR);
explicit RelationFetchJob(const QVector<QByteArray> &types, QObject *parent = 0);
explicit RelationFetchJob(const QVector<QByteArray> &types, QObject *parent = Q_NULLPTR);
void setResource(const QString &identifier);
......
......@@ -54,7 +54,7 @@ public:
explicit PasteHelperJob(Qt::DropAction action, const Akonadi::Item::List &items,
const Akonadi::Collection::List &collections,
const Akonadi::Collection &destination,
QObject *parent = 0);
QObject *parent = Q_NULLPTR);
virtual ~PasteHelperJob();
private Q_SLOTS:
......
......@@ -30,7 +30,7 @@ class AKONADICORE_EXPORT RelationSync : public Akonadi::Job
{
Q_OBJECT
public:
RelationSync(QObject *parent = 0);
RelationSync(QObject *parent = Q_NULLPTR);
virtual ~RelationSync();
void setRemoteRelations(const Akonadi::Relation::List &relations);
......
......@@ -31,7 +31,7 @@ class AKONADICORE_EXPORT TagSync : public Akonadi::Job
{
Q_OBJECT
public:
TagSync(QObject *parent = 0);
TagSync(QObject *parent = Q_NULLPTR);
virtual ~TagSync();
void setFullTagList(const Akonadi::Tag::List &tags);
......
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