diff options
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp b/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp index ab91e2c3b..f6f930679 100644 --- a/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp +++ b/sources/shiboken2/ApiExtractor/tests/testnumericaltypedef.cpp @@ -60,13 +60,13 @@ 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()); - const AbstractMetaType realType = funcReal->arguments().constFirst()->type(); + const AbstractMetaType realType = funcReal->arguments().constFirst().type(); QVERIFY(realType); QCOMPARE(realType.cppSignature(), QLatin1String("real")); QVERIFY(realType.isPrimitive()); @@ -102,13 +102,13 @@ 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()); - 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()); |