summaryrefslogtreecommitdiff
path: root/src/testlib/qtestelementattribute.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-13 11:42:26 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-11 14:41:50 +0200
commit225dd568af0c594dd0efacbad7b6568309a9cb7c (patch)
tree9d243de1160cd93653c68b95363f728f659a1530 /src/testlib/qtestelementattribute.cpp
parent2d8d738657b64c853316b605176e002b9e616fcf (diff)
downloadqtbase-225dd568af0c594dd0efacbad7b6568309a9cb7c.tar.gz
QTestLib: Introduce nullptr
Apply Fixits by Qt Creator with some amendments. Task-number: QTBUG-69413 Change-Id: I620e40a277dc2b20b0ec26fc32577e66b0456bb3 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
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 1aa54d767f..e194ee50f7 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