diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-08-11 16:54:44 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:18 -0300 |
commit | fbabe7a32b49d214ee5653cf6f0ced2f936c81ab (patch) | |
tree | 24698ed8817b08442ab0462eb8fd114f31c90271 /tests/testutil.h | |
parent | 7c2acc64fb7d345c184c91336ed20913a6d6d791 (diff) |
Fix bug 731 - "Can't specify more than a single 'since' argument"
Diffstat (limited to 'tests/testutil.h')
-rw-r--r-- | tests/testutil.h | 5 |
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 |