summaryrefslogtreecommitdiff
path: root/tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp')
-rw-r--r--tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp b/tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp
index 761d752b2a..43f28c2de9 100644
--- a/tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp
+++ b/tests/auto/pointeralgorithm/tst_pointeralgorithm.cpp
@@ -272,8 +272,8 @@ void tst_PointerAlgorithm::take()
int foo = 42;
QVERIFY(Utils::take(vector, ptrVector.at(0)).value().get() == ptrVector.at(0));
- QVERIFY(Utils::take(vector, ptrVector.at(0)) == Utils::nullopt);
- QVERIFY(Utils::take(vector, &foo) == Utils::nullopt);
+ QVERIFY(Utils::take(vector, ptrVector.at(0)) == std::nullopt);
+ QVERIFY(Utils::take(vector, &foo) == std::nullopt);
QVERIFY(Utils::take(vector, nullptr).value().get() == nullptr);
}
}