From 13a1debfcfa49b12cd69e04434291a450d747711 Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 21 Jul 2022 14:28:50 +0200 Subject: [PATCH] Prepare for usage of the new QDomDocument::setContent() overload The new overloads will return QDomDocument::ParseResult, that is explicitly convertible to bool, so get rid of the implicit conversion. Task-number: QTBUG-104507 Change-Id: I3d47bc84186d7809bbf643ff6fd708f065ac28c9 Reviewed-by: Marc Mutz --- tests/auto/core5/sax/qxmlinputsource/tst_qxmlinputsource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/core5/sax/qxmlinputsource/tst_qxmlinputsource.cpp b/tests/auto/core5/sax/qxmlinputsource/tst_qxmlinputsource.cpp index 4cfed4e..d277cb5 100644 --- a/tests/auto/core5/sax/qxmlinputsource/tst_qxmlinputsource.cpp +++ b/tests/auto/core5/sax/qxmlinputsource/tst_qxmlinputsource.cpp @@ -160,7 +160,7 @@ private slots: if (bodyBytesRead == bodyLength) { QDomDocument domDoc; - success = domDoc.setContent(body); + success = bool(domDoc.setContent(body)); eventLoop.exit(); } }