forked from qt-creator/qt-creator
CppTools: add multiple refactoring engines support
Make model manager able to select the most functional refactoring engine from the available ones. Change-Id: I74031c910706fd694a0a7def022531501f1ea005 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -524,7 +524,7 @@ void CppEditorWidget::renameSymbolUnderCursor()
|
||||
using ClangBackEnd::SourceLocationsContainer;
|
||||
|
||||
ProjectPart *projPart = projectPart();
|
||||
if (!refactoringEngine().isUsable() || !projPart)
|
||||
if (!projPart)
|
||||
return;
|
||||
|
||||
d->m_useSelectionsUpdater.abortSchedule();
|
||||
@@ -686,7 +686,7 @@ RefactorMarkers CppEditorWidget::refactorMarkersWithoutClangMarkers() const
|
||||
|
||||
RefactoringEngineInterface &CppEditorWidget::refactoringEngine() const
|
||||
{
|
||||
return CppTools::CppModelManager::refactoringEngine();
|
||||
return *CppTools::CppModelManager::instance();
|
||||
}
|
||||
|
||||
CppTools::FollowSymbolInterface &CppEditorWidget::followSymbolInterface() const
|
||||
|
||||
Reference in New Issue
Block a user