summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestlog.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-27 11:32:39 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-11 06:52:13 +0200
commit5c4f470132de1bd0ac33e05309184229b5fcb015 (patch)
treecb79a4bc90ec689ff5c2ffabe90e3f97f5162131 /src/testlib/qtestlog.cpp
parent4895ae10c6783f039737f2aff9c2ae8006d303eb (diff)
Port testlib from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: I780945c8923c0a03e9c0a32d039da0c793f650fd Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qtestlog.cpp')
-rw-r--r--src/testlib/qtestlog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp
index be50176a08..f831b51a53 100644
--- a/src/testlib/qtestlog.cpp
+++ b/src/testlib/qtestlog.cpp
@@ -144,7 +144,7 @@ namespace QTest {
// (the space was added automatically by ~QDebug() until Qt 5.3,
// so autotests still might expect it)
if (expected.endsWith(QLatin1Char(' ')))
- return actual == expected.leftRef(expected.length() - 1);
+ return actual == QStringView{expected}.left(expected.length() - 1);
return false;
}