fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+3
-4
@@ -332,10 +332,9 @@ QDomDocument ParseBuildingXml::openXml(const QString &fileName) const
|
||||
|
||||
// read Xml file
|
||||
QDomDocument metaDoc;
|
||||
int errLine = 0, errColumn = 0;
|
||||
QString err;
|
||||
if (!metaDoc.setContent(&f, &err, &errLine, &errColumn))
|
||||
throw XmlImportException(tr("Error parsing file content: %1 at %2.%3").arg(err).arg(errLine).arg(errColumn));
|
||||
const auto parseResult = metaDoc.setContent(&f);
|
||||
if (!parseResult)
|
||||
throw XmlImportException(tr("Error parsing file content: %1 at %2.%3").arg(parseResult.errorMessage).arg(int(parseResult.errorLine)).arg(int(parseResult.errorColumn)));
|
||||
|
||||
// close metaFile
|
||||
f.close();
|
||||
|
||||
Reference in new issue
Block a user