This commit is contained in:
2025-11-11 15:12:54 +03:00
parent 404fb0bf49
commit 9df00eda9e
2 changed files with 8 additions and 8 deletions

View File

@@ -107,12 +107,12 @@ bool Tools::checkNonStaticData(QString path)
bool Tools::loadXMLtoDOM(QString nameFile, QDomDocument *commonDOM)
bool Tools::loadXMLtoDOM(QString pathNameFile, QDomDocument *commonDOM)
{
QFile xmlInFile(nameFile);
QFile xmlInFile(pathNameFile);
if (! xmlInFile.open(QFile::ReadOnly | QFile::Text)) {
qDebug() << "loadXMLtoDOM: Couldn't read the file: " + nameFile;
qDebug() << "loadXMLtoDOM: Couldn't read the file: " + pathNameFile;
return false;
}
@@ -122,12 +122,12 @@ bool Tools::loadXMLtoDOM(QString nameFile, QDomDocument *commonDOM)
return true;
}
bool Tools::saveDOMtoXML(QString nameFile, QDomDocument *commonDOM)
bool Tools::saveDOMtoXML(QString pathNameFile, QDomDocument *commonDOM)
{
QFile xmlOutFile(nameFile);
QFile xmlOutFile(pathNameFile);
if (!xmlOutFile.open(QFile::WriteOnly | QFile::Text))
{
qDebug() << "saveDOMtoXML: Failed to write a file: " + nameFile;
qDebug() << "saveDOMtoXML: Failed to write a file: " + pathNameFile;
return false;
}
else