From 9127937bee319df646eca71dfef3286ca110e45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Sun, 8 Sep 2024 20:16:07 +0200 Subject: [PATCH] Added bool cast fixing compiler crash --- sources/titleblocktemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/titleblocktemplate.cpp b/sources/titleblocktemplate.cpp index b889e1e49..6b8f552f3 100644 --- a/sources/titleblocktemplate.cpp +++ b/sources/titleblocktemplate.cpp @@ -103,7 +103,7 @@ bool TitleBlockTemplate::loadFromXmlFile(const QString &filepath) { // parse its content as XML QDomDocument xml_doc; - bool xml_parsing = xml_doc.setContent(&template_file); + bool xml_parsing = (bool)xml_doc.setContent(&template_file); if (!xml_parsing) { return(false); }