QmlDesigner: Fix clazy warning

Use nullptr

Change-Id: I787794c67e89af7bc7a2d82def580bea3c8f2653
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Thomas Hartmann
2018-08-01 12:18:11 +02:00
parent 810896936b
commit 4fd17b6604
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ public:
void setInLayoutable(bool isInLayoutable); void setInLayoutable(bool isInLayoutable);
virtual void refreshLayoutable(); virtual void refreshLayoutable();
bool hasBindingForProperty(const PropertyName &propertyName, bool *hasChanged = 0) const; bool hasBindingForProperty(const PropertyName &propertyName, bool *hasChanged = nullptr) const;
QQmlContext *context() const; QQmlContext *context() const;
QQmlEngine *engine() const; QQmlEngine *engine() const;

View File

@@ -358,7 +358,7 @@ PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(PropertyEditorValue* parent
connect(m_editorValue, &PropertyEditorValue::modelNodeChanged, this, &PropertyEditorNodeWrapper::update); connect(m_editorValue, &PropertyEditorValue::modelNodeChanged, this, &PropertyEditorNodeWrapper::update);
} }
PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(QObject *parent) : QObject(parent), m_editorValue(NULL) PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(QObject *parent) : QObject(parent), m_editorValue(nullptr)
{ {
} }