forked from qt-creator/qt-creator
CppEditor: Make a few CppModelManager functions static
... to simplify code using it. Change-Id: Ib2bfbb5a17a1d48088a9cf4973d4c3f006cd34e4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -217,8 +217,7 @@ void CppRefactoringFile::fileChanged()
|
||||
|
||||
CppRefactoringChangesData::CppRefactoringChangesData(const Snapshot &snapshot)
|
||||
: m_snapshot(snapshot)
|
||||
, m_modelManager(CppModelManager::instance())
|
||||
, m_workingCopy(m_modelManager->workingCopy())
|
||||
, m_workingCopy(CppModelManager::workingCopy())
|
||||
{}
|
||||
|
||||
void CppRefactoringChangesData::indentSelection(const QTextCursor &selection,
|
||||
@@ -249,7 +248,7 @@ void CppRefactoringChangesData::reindentSelection(const QTextCursor &selection,
|
||||
|
||||
void CppRefactoringChangesData::fileChanged(const FilePath &filePath)
|
||||
{
|
||||
m_modelManager->updateSourceFiles({filePath});
|
||||
CppModelManager::updateSourceFiles({filePath});
|
||||
}
|
||||
|
||||
} // CppEditor
|
||||
|
||||
Reference in New Issue
Block a user