diff --git a/src/libs/aggregation/aggregate.h b/src/libs/aggregation/aggregate.h index 13881d85d81..8c3332bf81f 100644 --- a/src/libs/aggregation/aggregate.h +++ b/src/libs/aggregation/aggregate.h @@ -40,7 +40,7 @@ class AGGREGATION_EXPORT Aggregate : public QObject Q_OBJECT public: - Aggregate(QObject *parent = 0); + Aggregate(QObject *parent = nullptr); ~Aggregate() override; void add(QObject *component); @@ -52,7 +52,7 @@ public: if (T *result = qobject_cast(component)) return result; } - return (T *)0; + return nullptr; } template QList components() { @@ -84,19 +84,19 @@ private: template T *query(Aggregate *obj) { if (!obj) - return (T *)0; + return nullptr; return obj->template component(); } template T *query(QObject *obj) { if (!obj) - return (T *)0; + return nullptr; T *result = qobject_cast(obj); if (!result) { QReadLocker locker(&Aggregate::lock()); Aggregate *parentAggregation = Aggregate::parentAggregate(obj); - result = (parentAggregation ? query(parentAggregation) : 0); + result = (parentAggregation ? query(parentAggregation) : nullptr); } return result; }