aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/tests/testreferencetopointer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ApiExtractor/tests/testreferencetopointer.cpp')
-rw-r--r--ApiExtractor/tests/testreferencetopointer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ApiExtractor/tests/testreferencetopointer.cpp b/ApiExtractor/tests/testreferencetopointer.cpp
index 549643b..1f47f04 100644
--- a/ApiExtractor/tests/testreferencetopointer.cpp
+++ b/ApiExtractor/tests/testreferencetopointer.cpp
@@ -44,8 +44,9 @@ void TestReferenceToPointer::testReferenceToPointerArgument()
<object-type name='A'/>\n\
<object-type name='B'/>\n\
</typesystem>\n";
- TestUtil t(cppCode, xmlCode, false);
- AbstractMetaClassList classes = t.builder()->classes();
+ QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode, false));
+ QVERIFY(!builder.isNull());
+ AbstractMetaClassList classes = builder->classes();
AbstractMetaClass* classB = classes.findClass(QLatin1String("B"));
QVERIFY(classB);
const AbstractMetaFunction* func = classB->findFunction(QLatin1String("dummy"));