aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutil.h')
-rw-r--r--tests/testutil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testutil.h b/tests/testutil.h
index 775f3a1c9..9519fb8b2 100644
--- a/tests/testutil.h
+++ b/tests/testutil.h
@@ -32,14 +32,15 @@ class TestUtil
{
public:
TestUtil(const char* cppCode, const char* xmlCode,
- bool silent = true, double apiVersion = 0,
+ bool silent = true, const char* apiVersion = 0,
QStringList dropTypeEntries = QStringList())
: m_builder(0)
{
ReportHandler::setSilent(silent);
m_builder = new AbstractMetaBuilder;
TypeDatabase* td = TypeDatabase::instance(true);
- td->setApiVersion(apiVersion);
+ if (apiVersion)
+ td->setApiVersion("*", apiVersion);
td->setDropTypeEntries(dropTypeEntries);
QBuffer buffer;
// parse typesystem