MCPcopy Create free account
hub / github.com/KDE/kdevelop / apply

Method apply

kdevplatform/language/util/setrepository.h:508–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507private:
508 void apply() const
509 {
510 if (!m_temporaryIndices.empty()) {
511 QMutexLocker l(m_lockBeforeAccess);
512 Set tempSet = m_rep->createSet(m_temporaryIndices);
513 m_temporaryIndices.clear();
514 m_set += tempSet;
515 }
516 if (!m_temporaryRemoveIndices.empty()) {
517 QMutexLocker l(m_lockBeforeAccess);
518 Set tempSet = m_rep->createSet(m_temporaryRemoveIndices);
519 m_temporaryRemoveIndices.clear();
520 m_set -= tempSet;
521 }
522 }
523 BasicSetRepository* m_rep;
524 mutable Set m_set;
525 QMutex* m_lockBeforeAccess;

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
createSetMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected