summaryrefslogtreecommitdiff
path: root/tests/benchmarks/qml/script/tst_script.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-15 16:09:09 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-18 12:39:28 +0200
commit72c3befaa24e7e6021898061b5bc5389554e7126 (patch)
tree5aedde3f9e942a5fbb4b25ac03138d4ede5dceea /tests/benchmarks/qml/script/tst_script.cpp
parente7618dba5b4e4b59331693e7b3a38601822b6ffb (diff)
downloadqtdeclarative-72c3befaa24e7e6021898061b5bc5389554e7126.tar.gz
Replace 0 pointer constants with nullptr
Replaced in most common patterns. Change-Id: Idcaff1f2e915f29922702d3600a2e5f1e2418a7a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/benchmarks/qml/script/tst_script.cpp')
-rw-r--r--tests/benchmarks/qml/script/tst_script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/qml/script/tst_script.cpp b/tests/benchmarks/qml/script/tst_script.cpp
index a48d6bdec7..0233398481 100644
--- a/tests/benchmarks/qml/script/tst_script.cpp
+++ b/tests/benchmarks/qml/script/tst_script.cpp
@@ -106,7 +106,7 @@ class TestObject : public QObject
Q_PROPERTY(int x READ x WRITE setX)
public:
- TestObject(QObject *parent = 0);
+ TestObject(QObject *parent = nullptr);
int x();
void setX(int x) { m_x = x; }
@@ -199,7 +199,7 @@ void tst_script::property_getter()
}
}
-static TestObject *property_getter_qobject_object = 0;
+static TestObject *property_getter_qobject_object = nullptr;
static QJSValue property_getter_qobject_method(QScriptContext *, QJSEngine *)
{
static int idx = -1;