App: Use contains instead of std::find
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user