diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-02-06 13:17:43 +0100 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-02-13 08:18:16 +0000 |
commit | 99b084d04b9365d458d6225758224dfab26dea87 (patch) | |
tree | e4e899556dd886ed3f44d479d2b5a7db183d24ad /tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp | |
parent | 16832db4d2dc08adf971ed93d4e7393a597973bc (diff) |
Fix undefined reference to qCompare error
Linking against qtbase 5.9 fails with
error: undefined reference to 'bool QTest::qCompare<QString, char [13]>([...])'
due to QCOMPARE of QString with C string literal.
Change-Id: If4f4312d21d0b1a8ce2577d5f9d3a9ac0731b3a2
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp')
-rw-r--r-- | tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp b/tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp index 9c008cb90..845520628 100644 --- a/tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp +++ b/tests/auto/widgets/qwebenginesettings/tst_qwebenginesettings.cpp @@ -140,7 +140,7 @@ void tst_QWebEngineSettings::javascriptClipboard() // make sure that 'OriginalText' is selected evaluateJavaScriptSync(&page, "document.getElementById('myInput').select()"); QCOMPARE(evaluateJavaScriptSync(&page, "window.getSelection().toString()").toString(), - "OriginalText"); + QStringLiteral("OriginalText")); // Check that the actual settings work by the // - return value of queryCommandEnabled and |