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