mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Checkable::GetAllChildrenInternal: remove redundant emplace call
`checkable` is already added to the set by the insert call above, so calling emplace for the same checkable doesn't do anything useful and can be removed.
This commit is contained in:
parent
c465f45200
commit
67664ad7b7
@ -223,7 +223,6 @@ void Checkable::GetAllChildrenInternal(std::set<Checkable::Ptr>& seenChildren, i
|
||||
|
||||
for (const Checkable::Ptr& checkable : GetChildren()) {
|
||||
if (auto [_, inserted] = seenChildren.insert(checkable); inserted) {
|
||||
seenChildren.emplace(checkable);
|
||||
checkable->GetAllChildrenInternal(seenChildren, level + 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user