forked from qt-creator/qt-creator
TextEditor: filepathify RefactoringChanges
Change-Id: Ie97e484bcdeaa0cb2f5d04b3c79ace55ff2e426c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -70,7 +70,7 @@ void ClangToolQuickFixOperation::perform()
|
||||
continue;
|
||||
TextEditor::RefactoringFilePtr &refactoringFile = refactoringFiles[step.location.filePath];
|
||||
if (refactoringFile.isNull())
|
||||
refactoringFile = changes.file(step.location.filePath);
|
||||
refactoringFile = changes.file(Utils::FilePath::fromString(step.location.filePath));
|
||||
Utils::ChangeSet changeSet = refactoringFile->changeSet();
|
||||
Range range = toRange(refactoringFile->document(), {step.ranges.first(), step.ranges.last()});
|
||||
changeSet.replace(range, step.message);
|
||||
|
||||
Reference in New Issue
Block a user