forked from qt-creator/qt-creator
TextEditor: Make RefactoringChanges::file() virtual
More preparation for de-virtualization of RefactoringChangesData. Change-Id: Ib5f7782a8dcaa2ae093b62aebedbd7bae9d4c3f1 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -763,7 +763,7 @@ public:
|
||||
Utils::ChangeSet headerChangeSet;
|
||||
const CppRefactoringChanges refactoring(snapshot());
|
||||
const Utils::FilePath filePath = currentFile()->filePath();
|
||||
const CppRefactoringFilePtr headerFile = refactoring.file(filePath);
|
||||
const CppRefactoringFilePtr headerFile = refactoring.cppFile(filePath);
|
||||
const LookupContext targetContext(headerFile->cppDocument(), snapshot());
|
||||
|
||||
const Class *targetClass = m_classAST->symbol;
|
||||
@@ -881,7 +881,7 @@ public:
|
||||
if (!clazz)
|
||||
return;
|
||||
|
||||
CppRefactoringFilePtr implementationFile = refactoring.file(m_cppFilePath);
|
||||
CppRefactoringFilePtr implementationFile = refactoring.cppFile(m_cppFilePath);
|
||||
Utils::ChangeSet implementationChangeSet;
|
||||
const int insertPos = qMax(0, implementationFile->document()->characterCount() - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user