aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/testutil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testutil.h b/tests/testutil.h
index 7639a2535..640a9f78a 100644
--- a/tests/testutil.h
+++ b/tests/testutil.h
@@ -35,11 +35,12 @@ public:
{
ReportHandler::setSilent(silent);
m_builder = new AbstractMetaBuilder;
- TypeDatabase::instance()->setApiVersion(apiVersion);
+ TypeDatabase* td = TypeDatabase::instance(true);
+ td->setApiVersion(apiVersion);
QBuffer buffer;
// parse typesystem
buffer.setData(xmlCode);
- TypeDatabase::instance(true)->parseFile(&buffer);
+ td->parseFile(&buffer);
buffer.close();
// parse C++ code
buffer.setData(cppCode);