[libcalamaresui] Reduce 0-for-nullptr warnings in 3rd party code

- replace = 0 with = nullptr to reduce warnings; not a meaningful
   or copyrightable change.
This commit is contained in:
Adriaan de Groot 2019-04-11 13:15:10 +02:00
parent 1008a91eba
commit 6560c194ad
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
class QJsonTreeItem
{
public:
QJsonTreeItem(QJsonTreeItem * parent = 0);
QJsonTreeItem(QJsonTreeItem * parent = nullptr);
~QJsonTreeItem();
void appendChild(QJsonTreeItem * item);
QJsonTreeItem *child(int row);
@ -28,7 +28,7 @@ public:
QJsonValue::Type type() const;
static QJsonTreeItem* load(const QJsonValue& value, QJsonTreeItem * parent = 0);
static QJsonTreeItem* load(const QJsonValue& value, QJsonTreeItem * parent = nullptr);
protected:

View File

@ -16,7 +16,7 @@ class QJsonModel : public QAbstractItemModel
{
Q_OBJECT
public:
explicit QJsonModel(QObject *parent = 0);
explicit QJsonModel(QObject *parent = nullptr);
~QJsonModel();
bool load(const QString& fileName);
bool load(QIODevice * device);

View File

@ -37,7 +37,7 @@ class WaitingSpinnerWidget : public QWidget {
public:
/*! Constructor for "standard" widget behaviour - use this
* constructor if you wish to, e.g. embed your widget in another. */
WaitingSpinnerWidget(QWidget *parent = 0,
WaitingSpinnerWidget(QWidget *parent = nullptr,
bool centerOnParent = true,
bool disableParentWhenSpinning = true);
@ -47,7 +47,7 @@ public:
* QtWaitingSpinner automatically centres itself on it, if not,
* "centreOnParent" is ignored. */
WaitingSpinnerWidget(Qt::WindowModality modality,
QWidget *parent = 0,
QWidget *parent = nullptr,
bool centerOnParent = true,
bool disableParentWhenSpinning = true);