diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-08-07 18:10:27 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-08-07 17:20:23 +0000 |
commit | f8caf4f3679f38288c32f637bde6ab4f754cca57 (patch) | |
tree | 3c2c09b3f7b50d9875a07da42dabad0575ea55db | |
parent | 17d6ed15ca94b4b75a731c0a85ce33c533c9692c (diff) | |
download | qt-creator-f8caf4f3679f38288c32f637bde6ab4f754cca57.tar.gz |
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>
-rw-r--r-- | src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp index 154ee48b9a..0b94133b00 100644 --- a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp +++ b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp @@ -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() |