QmlProfiler: Fix linkage

76:5: warning: instantiation of function 'QTest::qCompare<ProjectExplorer::RunControl *, nullptr_t>' required here, but no definition is available
qtestcase.h:180:5: note: expanded from macro 'QTRY_COMPARE_WITH_TIMEOUT'
qtestcase.h:89:17: note: expanded from macro 'QCOMPARE'
qtestcase.h:364:10: note: forward declaration of template entity is here
76:5: note: add an explicit instantiation declaration to suppress this warning if 'QTest::qCompare<ProjectExplorer::RunControl *, nullptr_t>' is explicitly instantiated in another translation unit
qtestcase.h:180:5: note: expanded from macro 'QTRY_COMPARE_WITH_TIMEOUT'
qtestcase.h:89:17: note: expanded from macro 'QCOMPARE'

Change-Id: I0d9ed4eb9109cbc93439f655781cee34331719ce
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Orgad Shaneh
2017-08-07 18:10:27 +03:00
committed by Orgad Shaneh
parent 17d6ed15ca
commit f8caf4f367

View File

@@ -73,7 +73,7 @@ void LocalQmlProfilerRunnerTest::testRunner()
start();
QTimer::singleShot(0, this, &LocalQmlProfilerRunnerTest::testRunner1);
QTRY_COMPARE_WITH_TIMEOUT(runControl, nullptr, 70000);
QTRY_COMPARE_WITH_TIMEOUT(runControl, static_cast<ProjectExplorer::RunControl *>(nullptr), 70000);
}
void LocalQmlProfilerRunnerTest::testRunner1()