aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-10 10:16:09 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-11 17:06:51 +0000
commite720169ff6cb840dbd5a89f22f4d5e2e2b36bf17 (patch)
tree04d6d45b539b2e4a2ed596c3145ec56cbbf48b2b /sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp
parent381ae9c30149fe7cfffdf79cfd7f1d12449474b6 (diff)
shiboken6: Port AbstractMetaEnum/Value to use QSharedDataPointer
Change the client code to store it by value. For the various find() and traverseEnum() functions, use a std::optional to replace the pointer. Change-Id: Ie4e671bf95e569741fa3c9a399bfe239ceac0dec Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp b/sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp
index 7e98cdf40..20b0c12e0 100644
--- a/sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testdroptypeentries.cpp
@@ -88,7 +88,7 @@ void TestDropTypeEntries::testDropEntries()
AbstractMetaEnumList globalEnums = builder->globalEnums();
QCOMPARE(globalEnums.count(), 1);
- QCOMPARE(globalEnums.constFirst()->name(), QLatin1String("EnumA"));
+ QCOMPARE(globalEnums.constFirst().name(), QLatin1String("EnumA"));
TypeDatabase* td = TypeDatabase::instance();
QVERIFY(td->findType(QLatin1String("funcA")));