forked from qt-creator/qt-creator
CppEditor: Use class enum for CppUseSelectionsUpdater::CallType
Change-Id: Iaf6df1ccec50b84048933506a46b93bedf77da8e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user