| 342 | } |
| 343 | |
| 344 | int ItemRepositoryRegistry::finalCleanup() |
| 345 | { |
| 346 | Q_D(ItemRepositoryRegistry); |
| 347 | |
| 348 | QMutexLocker lock(&d->m_mutex); |
| 349 | int changed = false; |
| 350 | for (auto* repository : std::as_const(d->m_repositories)) { |
| 351 | std::scoped_lock repoLock(*repository); |
| 352 | int added = repository->finalCleanup(); |
| 353 | changed += added; |
| 354 | qCDebug(SERIALIZATION) << "cleaned in" << repository->repositoryName() << ":" << added; |
| 355 | } |
| 356 | |
| 357 | return changed; |
| 358 | } |
| 359 | |
| 360 | ItemRepositoryRegistry::~ItemRepositoryRegistry() |
| 361 | { |
nothing calls this directly
no test coverage detected