CppEditor: Avoid warning on integer comparison

warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
  162 |     if (m_model->editorRevision() != revision) {
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~

Change-Id: I1e69f71d3033181ffa0a5ebfb162f3a81ad4938c
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2022-09-01 09:54:58 +02:00
parent 313226735a
commit 69f55ea991

View File

@@ -158,7 +158,7 @@ void CppOutlineWidget::updateIndexNow()
if (!syncCursor())
return;
const auto revision = static_cast<unsigned>(m_editor->document()->revision());
const int revision = m_editor->document()->revision();
if (m_model->editorRevision() != revision) {
m_editor->cppEditorDocument()->updateOutline();
return;