aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testenum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testenum.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testenum.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testenum.cpp b/sources/shiboken6/ApiExtractor/tests/testenum.cpp
index e54f1ce38..e45da9e70 100644
--- a/sources/shiboken6/ApiExtractor/tests/testenum.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testenum.cpp
@@ -485,9 +485,9 @@ namespace Test2
const auto namespaceEnums = testNamespace->enums();
if (namespaceEnums.size() != 2)
return -4;
- QList<const EnumTypeEntry *> enumTypeEntries{
- static_cast<const EnumTypeEntry *>(namespaceEnums.at(0).typeEntry()),
- static_cast<const EnumTypeEntry *>(namespaceEnums.at(1).typeEntry())};
+ QList<EnumTypeEntryCPtr > enumTypeEntries{
+ qSharedPointerCast<const EnumTypeEntry>(namespaceEnums.at(0).typeEntry()),
+ qSharedPointerCast<const EnumTypeEntry>(namespaceEnums.at(1).typeEntry())};
if (enumTypeEntries.constFirst()->flags())
std::swap(enumTypeEntries[0], enumTypeEntries[1]);
fixture->testEnum = AbstractMetaType(enumTypeEntries.at(0));