Check if XML reader stopped because of an error. (#3034)
This commit is contained in:
parent
b74aa707d1
commit
cdc0ba32e4
|
@ -279,8 +279,12 @@ QString CppcheckLibraryData::open(QIODevice &file)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (xmlReader.hasError()) {
|
||||||
return QString();
|
return xmlReader.errorString();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void writeContainerFunctions(QXmlStreamWriter &xmlWriter, const QString &name, int extra, const QList<struct CppcheckLibraryData::Container::Function> &functions)
|
static void writeContainerFunctions(QXmlStreamWriter &xmlWriter, const QString &name, int extra, const QList<struct CppcheckLibraryData::Container::Function> &functions)
|
||||||
|
|
Loading…
Reference in New Issue