App: Use contains instead of std::find

This commit is contained in:
Benjamin Nauck
2025-03-24 21:08:14 +01:00
parent f6b62fcc99
commit ea6ea1ee9c
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ Branding::XmlConfig Branding::getUserDefines() const
while (!child.isNull()) {
std::string name = child.localName().toLatin1().constData();
std::string value = child.text().toUtf8().constData();
if (std::ranges::find(filter, name) != filter.end()) {
if (filter.contains(name)) {
cfg[name] = std::move(value);
}
child = child.nextSiblingElement();

View File

@@ -290,7 +290,7 @@ void Document::exportGraphviz(std::ostream& out) const
{
// don't add objects twice
if (std::ranges::find(objects, docObj) != objects.end()) {
if (objects.contains(docObj)) {
return;
}