From c8ade523093a3b6254ab48882958648af9d77989 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 24 Jan 2020 09:47:51 +0200 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- src/libs/ifc/xml/vabstractconverter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libs/ifc/xml/vabstractconverter.cpp b/src/libs/ifc/xml/vabstractconverter.cpp index bcd4e0c45..16229ba5a 100644 --- a/src/libs/ifc/xml/vabstractconverter.cpp +++ b/src/libs/ifc/xml/vabstractconverter.cpp @@ -229,16 +229,14 @@ void VAbstractConverter::ValidateXML(const QString &schema) const { qCDebug(vXML, "Validation xml file %s.", qUtf8Printable(m_convertedFileName)); QFile pattern(m_convertedFileName); - // cppcheck-suppress ConfigurationNotChecked - if (pattern.open(QIODevice::ReadOnly) == false) + if (not pattern.open(QIODevice::ReadOnly)) { const QString errorMsg(tr("Can't open file %1:\n%2.").arg(m_convertedFileName, pattern.errorString())); throw VException(errorMsg); } QFile fileSchema(schema); - // cppcheck-suppress ConfigurationNotChecked - if (fileSchema.open(QIODevice::ReadOnly) == false) + if (not fileSchema.open(QIODevice::ReadOnly)) { pattern.close(); const QString errorMsg(tr("Can't open schema file %1:\n%2.").arg(schema, fileSchema.errorString()));