chore: format llm c files
This commit is contained in:
@@ -213,7 +213,6 @@ QVariantList CodeHighlighter::lookupSpans(
|
||||
QMutexLocker locker(&m_cacheMutex);
|
||||
const auto it = m_spanCache.constFind(key);
|
||||
if (it == m_spanCache.constEnd() || it->code != code) return {};
|
||||
// Most recently used; eviction drops the oldest entries first.
|
||||
const qsizetype pos = m_spanCacheOrder.indexOf(key);
|
||||
if (pos >= 0) m_spanCacheOrder.move(pos, m_spanCacheOrder.size() - 1);
|
||||
return it->spans;
|
||||
|
||||
Reference in New Issue
Block a user