From ea6ea1ee9c42cd2d41ae6cf165405fc23c3b3904 Mon Sep 17 00:00:00 2001 From: Benjamin Nauck Date: Mon, 24 Mar 2025 21:08:14 +0100 Subject: [PATCH] App: Use contains instead of std::find --- src/App/Branding.cpp | 2 +- src/App/Graphviz.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Branding.cpp b/src/App/Branding.cpp index cea0497e0f..a319615b74 100644 --- a/src/App/Branding.cpp +++ b/src/App/Branding.cpp @@ -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(); diff --git a/src/App/Graphviz.cpp b/src/App/Graphviz.cpp index 9ab33c173b..aca3509cfc 100644 --- a/src/App/Graphviz.cpp +++ b/src/App/Graphviz.cpp @@ -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; }