From 8ba96ac6e26980786fc99104533fd5efce86e5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Sun, 8 Sep 2024 21:29:53 +0200 Subject: [PATCH] Added bool cast fixing compile error --- sources/titleblock/templatescollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/titleblock/templatescollection.cpp b/sources/titleblock/templatescollection.cpp index b2b0ae40c..40ee0da87 100644 --- a/sources/titleblock/templatescollection.cpp +++ b/sources/titleblock/templatescollection.cpp @@ -454,7 +454,7 @@ QDomElement TitleBlockTemplatesFilesCollection::getTemplateXmlDescription(const } QDomDocument *xml_document = new QDomDocument(); - bool xml_parsing = xml_document -> setContent(&xml_file); + bool xml_parsing = (bool)xml_document -> setContent(&xml_file); if (!xml_parsing) { delete xml_document; return(QDomElement());