diff options
author | Marc Mutz <[email protected]> | 2024-05-22 14:56:26 +0200 |
---|---|---|
committer | Ahmad Samir <[email protected]> | 2024-12-03 23:45:55 +0200 |
commit | 6212c32f1fa5e86a808713f33b331f2dad113e99 (patch) | |
tree | a5cb754822b727b7be6f4c9e258a2ab2be9c0fc4 /src/testlib/qtestcase.cpp | |
parent | f7e8e54d7e6803c91cc453afdfc46f3d0b4da9c2 (diff) |
Replace a few toString() or fromUtf8() QString::arg() parameters
...and fromUtf8() format strings.
QString::arg() is now available on QUtf8StringView, too and can handle
UTF-8 arguments directly.
Change-Id: Ifa8b1ea0f41414d15a6919b1967e0a45e4d7929f
Reviewed-by: Ahmad Samir <[email protected]>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r-- | src/testlib/qtestcase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 4caa4dab6a7..8b7f7479751 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -346,8 +346,7 @@ QString Internal::formatTryTimeoutDebugMessage(q_no_char8_t::QUtf8StringView exp { return "QTestLib: This test case check (\"%1\") failed because the requested timeout (%2 ms) " "was too short, %3 ms would have been sufficient this time."_L1 - // ### Qt 7: remove the toString() (or earlier, when arg() can handle QUtf8StringView), passing the view directly - .arg(expr.toString(), QString::number(timeout), QString::number(actual)); + .arg(expr, QString::number(timeout), QString::number(actual)); } extern Q_TESTLIB_EXPORT int lastMouseTimestamp; |