diff --git a/src/plugins/cppeditor/cppeditorwidget.cpp b/src/plugins/cppeditor/cppeditorwidget.cpp index f0f02934d95cf8eb30df3afa8f00f334b333b6ee..e11b2c8143d1f51df458cb4f6835c0e79bbcba36 100644 --- a/src/plugins/cppeditor/cppeditorwidget.cpp +++ b/src/plugins/cppeditor/cppeditorwidget.cpp @@ -774,7 +774,7 @@ QMenu *CppEditorWidget::createRefactorMenu(QWidget *parent) const // updateSemanticInfo(m_semanticHighlighter->semanticInfo(currentSource())); if (isSemanticInfoValidExceptLocalUses()) { - d->m_useSelectionsUpdater.update(CppUseSelectionsUpdater::Synchronous); + d->m_useSelectionsUpdater.update(CppUseSelectionsUpdater::CallType::Synchronous); addRefactoringActions(menu, createAssistInterface(QuickFix, ExplicitlyInvoked)); } @@ -881,8 +881,8 @@ void CppEditorWidget::updateSemanticInfo(const SemanticInfo &semanticInfo, if (!d->m_localRenaming.isActive()) { const CppUseSelectionsUpdater::CallType type = updateUseSelectionSynchronously - ? CppUseSelectionsUpdater::Synchronous - : CppUseSelectionsUpdater::Asynchronous; + ? CppUseSelectionsUpdater::CallType::Synchronous + : CppUseSelectionsUpdater::CallType::Asynchronous; d->m_useSelectionsUpdater.update(type); } diff --git a/src/plugins/cppeditor/cppuseselectionsupdater.cpp b/src/plugins/cppeditor/cppuseselectionsupdater.cpp index 44012b1c95f52a6d06aab176bd51925985d09f87..a254ed7eae7d34a8a4c5fda17e5fc9bc0b537cc7 100644 --- a/src/plugins/cppeditor/cppuseselectionsupdater.cpp +++ b/src/plugins/cppeditor/cppuseselectionsupdater.cpp @@ -78,7 +78,7 @@ void CppUseSelectionsUpdater::update(CallType callType) params.semanticInfo = cppEditorWidget->semanticInfo(); params.textCursor = TextEditor::Convenience::wordStartCursor(cppEditorWidget->textCursor()); - if (callType == Asynchronous) { + if (callType == CallType::Asynchronous) { if (isSameIdentifierAsBefore(params.textCursor)) return; diff --git a/src/plugins/cppeditor/cppuseselectionsupdater.h b/src/plugins/cppeditor/cppuseselectionsupdater.h index 478a816f980335076a1f59dab336415348181f14..7e10eeb680c6a13d7b671b9d60c276c939789699 100644 --- a/src/plugins/cppeditor/cppuseselectionsupdater.h +++ b/src/plugins/cppeditor/cppuseselectionsupdater.h @@ -49,8 +49,8 @@ public: void scheduleUpdate(); void abortSchedule(); - enum CallType { Synchronous, Asynchronous }; - void update(CallType callType = Asynchronous); + enum class CallType { Synchronous, Asynchronous }; + void update(CallType callType = CallType::Asynchronous); signals: void finished(CppTools::SemanticInfo::LocalUseMap localUses);