diff options
Diffstat (limited to 'src/libs/qmljs/qmljsvalueowner.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsvalueowner.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libs/qmljs/qmljsvalueowner.cpp b/src/libs/qmljs/qmljsvalueowner.cpp index bc58f61490..573ccb2aa1 100644 --- a/src/libs/qmljs/qmljsvalueowner.cpp +++ b/src/libs/qmljs/qmljsvalueowner.cpp @@ -130,7 +130,7 @@ SharedValueOwner *ValueOwner::sharedValueOwner(QString kind) SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) : ValueOwner(this) // need to avoid recursing in ValueOwner ctor { - _objectPrototype = newObject(/*prototype = */ 0); + _objectPrototype = newObject(/*prototype = */ nullptr); _functionPrototype = newObject(_objectPrototype); _numberPrototype = newObject(_objectPrototype); _booleanPrototype = newObject(_objectPrototype); @@ -409,7 +409,7 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) _globalObject->setMember(QLatin1String("Date"), dateCtor()); _globalObject->setMember(QLatin1String("RegExp"), regexpCtor()); - Function *f = 0; + Function *f = nullptr; // XMLHttpRequest ObjectValue *xmlHttpRequest = newObject(); @@ -477,7 +477,7 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) _globalObject->setMember(QLatin1String("JSON"), json); // QML objects - _qmlFontObject = newObject(/*prototype =*/ 0); + _qmlFontObject = newObject(/*prototype =*/ nullptr); _qmlFontObject->setClassName(QLatin1String("font")); _qmlFontObject->setMember(QLatin1String("family"), stringValue()); _qmlFontObject->setMember(QLatin1String("styleName"), stringValue()); @@ -496,24 +496,24 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) _qmlFontObject->setMember(QLatin1String("kerning"), booleanValue()); _qmlFontObject->setMember(QLatin1String("preferShaping"), booleanValue()); - _qmlPointObject = newObject(/*prototype =*/ 0); + _qmlPointObject = newObject(/*prototype =*/ nullptr); _qmlPointObject->setClassName(QLatin1String("Point")); _qmlPointObject->setMember(QLatin1String("x"), numberValue()); _qmlPointObject->setMember(QLatin1String("y"), numberValue()); - _qmlSizeObject = newObject(/*prototype =*/ 0); + _qmlSizeObject = newObject(/*prototype =*/ nullptr); _qmlSizeObject->setClassName(QLatin1String("Size")); _qmlSizeObject->setMember(QLatin1String("width"), numberValue()); _qmlSizeObject->setMember(QLatin1String("height"), numberValue()); - _qmlRectObject = newObject(/*prototype =*/ 0); + _qmlRectObject = newObject(/*prototype =*/ nullptr); _qmlRectObject->setClassName(QLatin1String("Rect")); _qmlRectObject->setMember(QLatin1String("x"), numberValue()); _qmlRectObject->setMember(QLatin1String("y"), numberValue()); _qmlRectObject->setMember(QLatin1String("width"), numberValue()); _qmlRectObject->setMember(QLatin1String("height"), numberValue()); - _qmlVector2DObject = newObject(/*prototype =*/ 0); + _qmlVector2DObject = newObject(/*prototype =*/ nullptr); _qmlVector2DObject->setClassName(QLatin1String("Vector2D")); _qmlVector2DObject->setMember(QLatin1String("x"), realValue()); _qmlVector2DObject->setMember(QLatin1String("y"), realValue()); @@ -527,7 +527,7 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) addFunction(_qmlVector2DObject, QLatin1String("toVector4d"), _qmlVector4DObject, 0); addFunction(_qmlVector2DObject, QLatin1String("fuzzyEquals"), booleanValue(), 1, 1); - _qmlVector3DObject = newObject(/*prototype =*/ 0); + _qmlVector3DObject = newObject(/*prototype =*/ nullptr); _qmlVector3DObject->setClassName(QLatin1String("Vector3D")); _qmlVector3DObject->setMember(QLatin1String("x"), realValue()); _qmlVector3DObject->setMember(QLatin1String("y"), realValue()); @@ -542,7 +542,7 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) addFunction(_qmlVector3DObject, QLatin1String("toVector4d"), _qmlVector4DObject, 0); addFunction(_qmlVector3DObject, QLatin1String("fuzzyEquals"), booleanValue(), 1, 1); - _qmlVector4DObject = newObject(/*prototype =*/ 0); + _qmlVector4DObject = newObject(/*prototype =*/ nullptr); _qmlVector4DObject->setClassName(QLatin1String("Vector4D")); _qmlVector4DObject->setMember(QLatin1String("x"), realValue()); _qmlVector4DObject->setMember(QLatin1String("y"), realValue()); @@ -558,14 +558,14 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) addFunction(_qmlVector4DObject, QLatin1String("toVector3d"), _qmlVector3DObject, 0); addFunction(_qmlVector4DObject, QLatin1String("fuzzyEquals"), booleanValue(), 1, 1); - _qmlQuaternionObject = newObject(/*prototype =*/ 0); + _qmlQuaternionObject = newObject(/*prototype =*/ nullptr); _qmlQuaternionObject->setClassName(QLatin1String("Quaternion")); _qmlQuaternionObject->setMember(QLatin1String("scalar"), realValue()); _qmlQuaternionObject->setMember(QLatin1String("x"), realValue()); _qmlQuaternionObject->setMember(QLatin1String("y"), realValue()); _qmlQuaternionObject->setMember(QLatin1String("z"), realValue()); - _qmlMatrix4x4Object = newObject(/*prototype =*/ 0); + _qmlMatrix4x4Object = newObject(/*prototype =*/ nullptr); _qmlMatrix4x4Object->setClassName(QLatin1String("Matrix4x4")); for (int i = 1; i < 5; ++i) for (int j = 1; j < 5; ++j) @@ -634,7 +634,7 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind) _globalObject->setMember(QLatin1String("Qt"), _qtObject); // firebug/webkit compat - ObjectValue *consoleObject = newObject(/*prototype */ 0); + ObjectValue *consoleObject = newObject(/*prototype */ nullptr); addFunction(consoleObject, QLatin1String("log"), 1, 0, true); addFunction(consoleObject, QLatin1String("debug"), 1, 0, true); if (kind == Qt5Kind) { |