PluginManager: Fix compile for release builds

Issue was introduced with 273c3fa0af

Change-Id: I09d3691c549cbca34d48725f092273e781af20ab
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-01-16 07:38:59 +01:00
committed by hjk
parent 50a5056b10
commit 377052bfac
2 changed files with 4 additions and 2 deletions

View File

@@ -869,6 +869,7 @@ void PluginManagerPrivate::deleteAll()
}
}
#ifdef WITH_TESTS
static QStringList testFunctions(const QMetaObject *metaObject)
{
QStringList testFunctions;
@@ -949,7 +950,6 @@ void PluginManagerPrivate::startTests()
return;
}
#ifdef WITH_TESTS
foreach (const PluginManagerPrivate::TestSpec &testSpec, testSpecs) {
const PluginSpec * const pluginSpec = testSpec.pluginSpec;
if (!pluginSpec->plugin())
@@ -973,8 +973,8 @@ void PluginManagerPrivate::startTests()
}
if (!testSpecs.isEmpty())
QTimer::singleShot(1, this, SLOT(exitWithNumberOfFailedTests()));
#endif
}
#endif
/*!
\internal