CppEditorOutline: Fix warning

Change-Id: I7b3d212fb2b8c8a2b9f6af9a5445ac48e6e51b9c
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-08-22 11:20:55 +02:00
parent 3c9aa364ec
commit 62bb8b9686

View File

@@ -164,8 +164,7 @@ void CppEditorOutline::updateIndex()
void CppEditorOutline::updateIndexNow() void CppEditorOutline::updateIndexNow()
{ {
const auto revision = static_cast<unsigned>(m_editorWidget->document()->revision()); if (m_model->editorRevision() != m_editorWidget->document()->revision()) {
if (m_model->editorRevision() != revision) {
m_updateIndexTimer->start(); m_updateIndexTimer->start();
return; return;
} }