summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestelementattribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestelementattribute.cpp')
-rw-r--r--src/testlib/qtestelementattribute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestelementattribute.cpp b/src/testlib/qtestelementattribute.cpp
index 1aa54d767f0..e194ee50f75 100644
--- a/src/testlib/qtestelementattribute.cpp
+++ b/src/testlib/qtestelementattribute.cpp
@@ -141,7 +141,7 @@ const char *QTestElementAttribute::name() const
if (attributeIndex != QTest::AI_Undefined)
return AttributeNames[attributeIndex];
- return 0;
+ return nullptr;
}
QTest::AttributeIndex QTestElementAttribute::index() const
@@ -164,7 +164,7 @@ bool QTestElementAttribute::setPair(QTest::AttributeIndex index, const char *val
attributeIndex = index;
attributeValue = qstrdup(value);
- return attributeValue != 0;
+ return attributeValue != nullptr;
}
QT_END_NAMESPACE