Use GetParents() in FireSppressedNotifications()

It's way efficient than accessing them through the dependency objects,
plus we won't have any duplicates.
This commit is contained in:
Yonas Habteab 2025-02-10 08:33:29 +01:00
parent 8640a3f84e
commit 915ea6427e

View File

@ -167,8 +167,7 @@ void Checkable::FireSuppressedNotifications()
}
}
for (auto& dep : GetDependencies()) {
auto parent (dep->GetParent());
for (auto& parent : GetParents()) {
ObjectLock oLock (parent);
if (!parent->GetProblem() && parent->GetLastStateChange() >= threshold) {