Changed QDomDocument::setContent for Qt 6.5

This commit is contained in:
thunder2 2025-07-22 00:24:27 +02:00
parent c4c2c5a0d1
commit d4dcaaa41a
2 changed files with 2 additions and 2 deletions

View file

@ -1472,7 +1472,7 @@ bool NewFriendList::importFriendlist(QString &fileName, bool &errorPeers, bool &
return false;
}
bool ok = doc.setContent(&file);
bool ok = (bool) doc.setContent(&file);
file.close();
if(!ok) {

View file

@ -194,7 +194,7 @@ RsCollection::RsCollection(const QString& fileName, RsCollectionErrorCode& error
}
QDomDocument xml_doc;
bool ok = xml_doc.setContent(&file) ;
bool ok = (bool) xml_doc.setContent(&file);
if(!ok)
{