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:
@@ -81,11 +81,16 @@ QmlJSRefactoringChanges::QmlJSRefactoringChanges(ModelManagerInterface *modelMan
|
||||
{
|
||||
}
|
||||
|
||||
QmlJSRefactoringFilePtr QmlJSRefactoringChanges::file(const Utils::FilePath &filePath) const
|
||||
TextEditor::RefactoringFilePtr QmlJSRefactoringChanges::file(const Utils::FilePath &filePath) const
|
||||
{
|
||||
return QmlJSRefactoringFilePtr(new QmlJSRefactoringFile(filePath, m_data));
|
||||
}
|
||||
|
||||
QmlJSRefactoringFilePtr QmlJSRefactoringChanges::qmlJSFile(const Utils::FilePath &filePath) const
|
||||
{
|
||||
return file(filePath).staticCast<QmlJSRefactoringFile>();
|
||||
}
|
||||
|
||||
QmlJSRefactoringFilePtr QmlJSRefactoringChanges::file(
|
||||
TextEditor::TextEditorWidget *editor, const Document::Ptr &document)
|
||||
{
|
||||
|
||||
@@ -56,7 +56,9 @@ public:
|
||||
|
||||
static QmlJSRefactoringFilePtr file(TextEditor::TextEditorWidget *editor,
|
||||
const QmlJS::Document::Ptr &document);
|
||||
QmlJSRefactoringFilePtr file(const Utils::FilePath &filePath) const;
|
||||
TextEditor::RefactoringFilePtr file(const Utils::FilePath &filePath) const;
|
||||
|
||||
QmlJSRefactoringFilePtr qmlJSFile(const Utils::FilePath &filePath) const;
|
||||
|
||||
const QmlJS::Snapshot &snapshot() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user