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:
@@ -248,7 +248,7 @@ void performComponentFromObjectDef(QmlJSEditorWidget *editor,
|
||||
{
|
||||
QmlJSRefactoringChanges refactoring(QmlJS::ModelManagerInterface::instance(),
|
||||
QmlJS::ModelManagerInterface::instance()->snapshot());
|
||||
QmlJSRefactoringFilePtr current = refactoring.file(Utils::FilePath::fromString(fileName));
|
||||
QmlJSRefactoringFilePtr current = refactoring.qmlJSFile(Utils::FilePath::fromString(fileName));
|
||||
|
||||
QmlJSQuickFixAssistInterface interface(editor, TextEditor::AssistReason::ExplicitlyInvoked);
|
||||
Operation operation(&interface, objDef);
|
||||
|
||||
@@ -31,7 +31,7 @@ QmlJSQuickFixOperation::QmlJSQuickFixOperation(const QmlJSQuickFixAssistInterfac
|
||||
void QmlJSQuickFixOperation::perform()
|
||||
{
|
||||
QmlJSRefactoringChanges refactoring(ModelManagerInterface::instance(), semanticInfo().snapshot);
|
||||
QmlJSRefactoringFilePtr current = refactoring.file(fileName());
|
||||
QmlJSRefactoringFilePtr current = refactoring.qmlJSFile(fileName());
|
||||
|
||||
performChanges(current, refactoring);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user