Utils: Fix macro under MSVC

Change-Id: I474033c96decc1c8a71e8ec8ed57ba5e1539daad
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-09-24 06:44:41 +02:00
parent 889a3de86b
commit d73fa51271

View File

@@ -41,4 +41,4 @@ using expected_str = tl::expected<T, QString>;
} while (0) } while (0)
#define QVERIFY_EXPECTED(expected) \ #define QVERIFY_EXPECTED(expected) \
QVERIFY2(expected, expected ? #expected : expected.error().toUtf8()) QVERIFY2(expected, expected ? #expected : static_cast<const char*>(expected.error().toUtf8()))