summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-06-08 14:11:06 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2022-06-28 00:39:35 +0000
commit44927b801ab8afac901132f9505a42b41821cb55 (patch)
tree15fed84b52ceddfb89b84306ac04226d899813e1 /src/testlib/qtestcase.h
parent3eaf6a4cad4c12c1777cf7d5793e518f66f07780 (diff)
QTest: switch some text-conversion functions to use qsizetype
To avoid potential narrowing. Pick-to: 6.4 Task-number: QTBUG-104125 Change-Id: I37bfc5c49e7c919f5204a76a905758a92527d864 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.h')
-rw-r--r--src/testlib/qtestcase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestcase.h b/src/testlib/qtestcase.h
index ab64d712f9..7db64af8ab 100644
--- a/src/testlib/qtestcase.h
+++ b/src/testlib/qtestcase.h
@@ -346,8 +346,8 @@ namespace QTest
template <class... Types>
inline char *toString(const std::tuple<Types...> &tuple);
- Q_TESTLIB_EXPORT char *toHexRepresentation(const char *ba, int length);
- Q_TESTLIB_EXPORT char *toPrettyCString(const char *unicode, int length);
+ Q_TESTLIB_EXPORT char *toHexRepresentation(const char *ba, qsizetype length);
+ Q_TESTLIB_EXPORT char *toPrettyCString(const char *unicode, qsizetype length);
Q_TESTLIB_EXPORT char *toPrettyUnicode(QStringView string);
Q_TESTLIB_EXPORT char *toString(const char *);
Q_TESTLIB_EXPORT char *toString(const volatile void *);