Compiler warning cleanup (#22997)

* Part: Remove unused arguments from isLinearEdge

* Gui: For Qt 6.5 and later, use ParseOptions in xml

* Gui: Remove unused variable from fuzzyMatch()

* Sketcher: Remove unused parameter from *ReferenceSelection

* PD: Remove unused parameter from *ReferenceSelection

* Part: Rename layout to avoid conflict

* FEM: remove unused variable from handlePropertyChange

* CAM: Eliminate C++11 compiler warning by explicitly defaulting copy
This commit is contained in:
Kacper Donat
2025-09-29 18:05:58 +02:00
committed by GitHub
10 changed files with 24 additions and 9 deletions

View File

@@ -566,6 +566,11 @@ DocumentRecoveryPrivate::XmlConfig DocumentRecoveryPrivate::readXmlFile(const QS
if (!file.open(QFile::ReadOnly))
return cfg;
#if QT_VERSION >= QT_VERSION_CHECK(6,5,0)
if (!domDocument.setContent(&file, QDomDocument::ParseOption::UseNamespaceProcessing)) {
return cfg;
}
#else
QString errorStr;
int errorLine;
int errorColumn;
@@ -574,6 +579,7 @@ DocumentRecoveryPrivate::XmlConfig DocumentRecoveryPrivate::readXmlFile(const QS
&errorColumn)) {
return cfg;
}
#endif
QDomElement root = domDocument.documentElement();
if (root.tagName() != QLatin1String("AutoRecovery")) {