diff --git a/src/plugins/texteditor/textdocument.cpp b/src/plugins/texteditor/textdocument.cpp index bf43ebc36e8..0f77c2568da 100644 --- a/src/plugins/texteditor/textdocument.cpp +++ b/src/plugins/texteditor/textdocument.cpp @@ -1034,7 +1034,7 @@ void TextDocument::removeMarkFromMarksCache(TextMark *mark) { auto documentLayout = qobject_cast(d->m_document.documentLayout()); QTC_ASSERT(documentLayout, return); - d->m_marksCache.removeAll(mark); + d->m_marksCache.removeOne(mark); auto scheduleLayoutUpdate = [documentLayout](){ // make sure all destructors that may directly or indirectly call this function are