Gui: apply std::ranges
This commit is contained in:
@@ -483,8 +483,8 @@ DocumentRecoveryPrivate::XmlConfig DocumentRecoveryPrivate::readXmlFile(const QS
|
||||
child = root.firstChildElement();
|
||||
while (!child.isNull()) {
|
||||
QString name = child.localName();
|
||||
QString value = child.text();
|
||||
if (std::find(filter.begin(), filter.end(), name) != filter.end())
|
||||
const QString value = child.text();
|
||||
if (std::ranges::find(filter, name) != filter.end())
|
||||
cfg[name] = value;
|
||||
child = child.nextSiblingElement();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user