Valgrind: Use QMetaEnum for parsing enum values

Change-Id: I43685e3fde662a57b6966d5f5f29d4138158b4d8
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-07-25 16:29:36 +02:00
parent e87a131c37
commit 545dbc5743
4 changed files with 26 additions and 78 deletions

View File

@@ -28,7 +28,7 @@ QT_BEGIN_NAMESPACE
namespace QTest {
template<>
inline bool qCompare(int const &t1, MemcheckErrorKind const &t2,
inline bool qCompare(int const &t1, MemcheckError const &t2,
char const *actual, char const *expected, char const *file, int line)
{
return qCompare(t1, int(t2), actual, expected, file, line);