aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp b/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp
index 03129073a..ab91e2c3b 100644
--- a/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp
@@ -60,17 +60,17 @@ void TestNumericalTypedef::testNumericalTypedef()
QCOMPARE(funcDouble->minimalSignature(), QLatin1String("funcDouble(double)"));
QCOMPARE(funcReal->minimalSignature(), QLatin1String("funcReal(real)"));
- const AbstractMetaType *doubleType = funcDouble->arguments().constFirst()->type();
+ const AbstractMetaType doubleType = funcDouble->arguments().constFirst()->type();
QVERIFY(doubleType);
- QCOMPARE(doubleType->cppSignature(), QLatin1String("double"));
- QVERIFY(doubleType->isPrimitive());
- QVERIFY(doubleType->typeEntry()->isCppPrimitive());
+ QCOMPARE(doubleType.cppSignature(), QLatin1String("double"));
+ QVERIFY(doubleType.isPrimitive());
+ QVERIFY(doubleType.typeEntry()->isCppPrimitive());
- const AbstractMetaType *realType = funcReal->arguments().constFirst()->type();
+ const AbstractMetaType realType = funcReal->arguments().constFirst()->type();
QVERIFY(realType);
- QCOMPARE(realType->cppSignature(), QLatin1String("real"));
- QVERIFY(realType->isPrimitive());
- QVERIFY(realType->typeEntry()->isCppPrimitive());
+ QCOMPARE(realType.cppSignature(), QLatin1String("real"));
+ QVERIFY(realType.isPrimitive());
+ QVERIFY(realType.typeEntry()->isCppPrimitive());
}
void TestNumericalTypedef::testUnsignedNumericalTypedef()
@@ -102,17 +102,17 @@ void TestNumericalTypedef::testUnsignedNumericalTypedef()
QCOMPARE(funcUnsignedShort->minimalSignature(), QLatin1String("funcUnsignedShort(unsigned short)"));
QCOMPARE(funcUShort->minimalSignature(), QLatin1String("funcUShort(custom_ushort)"));
- const AbstractMetaType *unsignedShortType = funcUnsignedShort->arguments().constFirst()->type();
+ const AbstractMetaType unsignedShortType = funcUnsignedShort->arguments().constFirst()->type();
QVERIFY(unsignedShortType);
- QCOMPARE(unsignedShortType->cppSignature(), QLatin1String("unsigned short"));
- QVERIFY(unsignedShortType->isPrimitive());
- QVERIFY(unsignedShortType->typeEntry()->isCppPrimitive());
+ QCOMPARE(unsignedShortType.cppSignature(), QLatin1String("unsigned short"));
+ QVERIFY(unsignedShortType.isPrimitive());
+ QVERIFY(unsignedShortType.typeEntry()->isCppPrimitive());
- const AbstractMetaType *ushortType = funcUShort->arguments().constFirst()->type();
+ const AbstractMetaType ushortType = funcUShort->arguments().constFirst()->type();
QVERIFY(ushortType);
- QCOMPARE(ushortType->cppSignature(), QLatin1String("custom_ushort"));
- QVERIFY(ushortType->isPrimitive());
- QVERIFY(ushortType->typeEntry()->isCppPrimitive());
+ QCOMPARE(ushortType.cppSignature(), QLatin1String("custom_ushort"));
+ QVERIFY(ushortType.isPrimitive());
+ QVERIFY(ushortType.typeEntry()->isCppPrimitive());
}
QTEST_APPLESS_MAIN(TestNumericalTypedef)