diff --git a/sources/titleblock/templatescollection.cpp b/sources/titleblock/templatescollection.cpp index 216ef8db7..5ffc44caf 100644 --- a/sources/titleblock/templatescollection.cpp +++ b/sources/titleblock/templatescollection.cpp @@ -454,8 +454,7 @@ QDomElement TitleBlockTemplatesFilesCollection::getTemplateXmlDescription(const } QDomDocument *xml_document = new QDomDocument(); - bool xml_parsing = xml_document -> setContent(&xml_file); - if (!xml_parsing) { + if (!xml_document -> setContent(&xml_file)) { delete xml_document; return(QDomElement()); }