Cppcheck warning.
--HG-- branch : develop
This commit is contained in:
parent
0b82f4a18c
commit
c8ade52309
|
@ -229,16 +229,14 @@ void VAbstractConverter::ValidateXML(const QString &schema) const
|
||||||
{
|
{
|
||||||
qCDebug(vXML, "Validation xml file %s.", qUtf8Printable(m_convertedFileName));
|
qCDebug(vXML, "Validation xml file %s.", qUtf8Printable(m_convertedFileName));
|
||||||
QFile pattern(m_convertedFileName);
|
QFile pattern(m_convertedFileName);
|
||||||
// cppcheck-suppress ConfigurationNotChecked
|
if (not pattern.open(QIODevice::ReadOnly))
|
||||||
if (pattern.open(QIODevice::ReadOnly) == false)
|
|
||||||
{
|
{
|
||||||
const QString errorMsg(tr("Can't open file %1:\n%2.").arg(m_convertedFileName, pattern.errorString()));
|
const QString errorMsg(tr("Can't open file %1:\n%2.").arg(m_convertedFileName, pattern.errorString()));
|
||||||
throw VException(errorMsg);
|
throw VException(errorMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
QFile fileSchema(schema);
|
QFile fileSchema(schema);
|
||||||
// cppcheck-suppress ConfigurationNotChecked
|
if (not fileSchema.open(QIODevice::ReadOnly))
|
||||||
if (fileSchema.open(QIODevice::ReadOnly) == false)
|
|
||||||
{
|
{
|
||||||
pattern.close();
|
pattern.close();
|
||||||
const QString errorMsg(tr("Can't open schema file %1:\n%2.").arg(schema, fileSchema.errorString()));
|
const QString errorMsg(tr("Can't open schema file %1:\n%2.").arg(schema, fileSchema.errorString()));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user