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

Method clear

kdevplatform/language/editor/modificationrevisionset.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void ModificationRevisionSet::clear()
155{
156 QMutexLocker lock(modificationRevisionSetMutex());
157
158 if (m_index) {
159 Utils::Set oldModificationTimes = Utils::Set(m_index, &FileModificationSetRepositoryRepresenter::repository());
160 oldModificationTimes.staticUnref();
161 m_index = 0;
162 }
163}
164
165void ModificationRevisionSet::addModificationRevision(const IndexedString& url,
166 const KDevelop::ModificationRevision& revision)

Callers 2

clearCacheMethod · 0.45

Calls 3

SetFunction · 0.85
staticUnrefMethod · 0.80

Tested by

no test coverage detected