aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/tests/testutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'ApiExtractor/tests/testutil.h')
-rw-r--r--ApiExtractor/tests/testutil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ApiExtractor/tests/testutil.h b/ApiExtractor/tests/testutil.h
index ad2e3a7..d4eb2fd 100644
--- a/ApiExtractor/tests/testutil.h
+++ b/ApiExtractor/tests/testutil.h
@@ -42,8 +42,8 @@ namespace TestUtil
{
ReportHandler::setSilent(silent);
TypeDatabase* td = TypeDatabase::instance(true);
- if (apiVersion)
- td->setApiVersion(QLatin1String("*"), apiVersion);
+ if (apiVersion && !td->setApiVersion(QLatin1String("*"), QLatin1String(apiVersion)))
+ return Q_NULLPTR;
td->setDropTypeEntries(dropTypeEntries);
QBuffer buffer;
// parse typesystem